As VonC says, it's unclear what you mean by model. Here are a few options.
If you're talking about resource changes, there is a (old, but still useful) article on the deltas resource in the Eclipse corner that shows you the basics.
If you mean changes in the choice of the workspace (for example, the choice of an item in the package explorer), check out this article in the selection service .
Debugging org.eclipse.ui.texteditor.AbstractTextEditor, the update is processed as follows:
protected void handleEditorInputChanged() { ... final IDocumentProvider provider= getDocumentProvider(); ... if (provider instanceof IDocumentProviderExtension) { IDocumentProviderExtension extension= (IDocumentProviderExtension) provider; extension.synchronize(input);
Note that in all of this there is code loading to handle the deactivation and reactivation of other event handlers during this process. If you can expand from AbstractTextEditor, you can do this to avoid having to implement it yourself.
source share