public interface IDirtyStateManager extends ISelectable, IExternalContentSupport.IExternalContentProvider, IResourceDescription.Event.Source
IDirtyStateManager can be used to register
a currently edited resource and listen to changes on those resources.| Modifier and Type | Interface and Description |
|---|---|
static interface |
IDirtyStateManager.Event
The
IDirtyStateManager will raise specialized events that provide
direct type-safe access to the source as IDirtyStateManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
announceDirtyStateChanged(IDirtyResource dirtyResource)
Announce the dirty state of the given resource.
|
void |
discardDirtyState(IDirtyResource dirtyResource)
Mark the given dirty resource as unmanaged.
|
IResourceDescription |
getDirtyResourceDescription(org.eclipse.emf.common.util.URI uri) |
boolean |
manageDirtyState(IDirtyResource dirtyResource)
Initially try to manage the given resource and its dirty state.
|
getExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByType, isEmptygetActualContentProvider, getContent, hasContentaddListener, notifyListeners, removeListenerboolean manageDirtyState(IDirtyResource dirtyResource)
True will be returned, if the resource with the given URI
was not managed before. However clients are free to call
announceDirtyStateChanged(IDirtyResource) even if false was
returned. A call to manageDirtyState(IDirtyResource) does not raise any events.true if this resource is the first one that has been registered
for its URIvoid discardDirtyState(IDirtyResource dirtyResource)
URI will not become unmanaged. A call to this method will raise an event.void announceDirtyStateChanged(IDirtyResource dirtyResource)
IResourceDescription getDirtyResourceDescription(org.eclipse.emf.common.util.URI uri)