public class DirtyStateManager extends AbstractResourceDescriptionChangeEventSource implements IDirtyStateManager, IDirtyStateManagerExtension
IDirtyStateManager.Event| Constructor and Description |
|---|
DirtyStateManager() |
| 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.
|
protected IDirtyResource |
findDirtyResourcebyURIorNormalizedURI(org.eclipse.emf.common.util.URI uri) |
IExternalContentSupport.IExternalContentProvider |
getActualContentProvider() |
String |
getContent(org.eclipse.emf.common.util.URI uri) |
IDirtyResource |
getDirtyResource(org.eclipse.emf.common.util.URI uri) |
IResourceDescription |
getDirtyResourceDescription(org.eclipse.emf.common.util.URI uri) |
List<org.eclipse.emf.common.util.URI> |
getDirtyResourceURIs() |
Iterable<IEObjectDescription> |
getExportedObjects() |
Iterable<IEObjectDescription> |
getExportedObjects(org.eclipse.emf.ecore.EClass type,
QualifiedName name,
boolean ignoreCase) |
Iterable<IEObjectDescription> |
getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object) |
Iterable<IEObjectDescription> |
getExportedObjectsByType(org.eclipse.emf.ecore.EClass type) |
ResourceStorageLoadable |
getResourceStorageLoadable(org.eclipse.emf.common.util.URI uri) |
boolean |
hasContent(org.eclipse.emf.common.util.URI uri) |
boolean |
isEmpty() |
boolean |
manageDirtyState(IDirtyResource dirtyResource)
Initially try to manage the given resource and its dirty state.
|
protected void |
notifyListeners(IDirtyResource dirtyResource,
boolean managed) |
addListener, addListeners, notifyListeners, removeListener, removeListenersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, notifyListeners, removeListenerpublic void announceDirtyStateChanged(IDirtyResource dirtyResource)
IDirtyStateManagermanaged resource in the
state manager, the change will be refused and no change will be announced.announceDirtyStateChanged in interface IDirtyStateManagerpublic void discardDirtyState(IDirtyResource dirtyResource)
IDirtyStateManagerURI will not become unmanaged. A call to this method will raise an event.discardDirtyState in interface IDirtyStateManagerIDirtyStateManager.announceDirtyStateChanged(IDirtyResource)protected void notifyListeners(IDirtyResource dirtyResource, boolean managed)
public boolean manageDirtyState(IDirtyResource dirtyResource)
IDirtyStateManagerTrue will be returned, if the resource with the given URI
was not managed before. However clients are free to call
IDirtyStateManager.announceDirtyStateChanged(IDirtyResource) even if false was
returned. A call to IDirtyStateManager.manageDirtyState(IDirtyResource) does not raise any events.manageDirtyState in interface IDirtyStateManagertrue if this resource is the first one that has been registered
for its URIpublic IDirtyResource getDirtyResource(org.eclipse.emf.common.util.URI uri)
public IResourceDescription getDirtyResourceDescription(org.eclipse.emf.common.util.URI uri)
getDirtyResourceDescription in interface IDirtyStateManagerpublic String getContent(org.eclipse.emf.common.util.URI uri)
getContent in interface IExternalContentSupport.IExternalContentProviderpublic ResourceStorageLoadable getResourceStorageLoadable(org.eclipse.emf.common.util.URI uri)
protected IDirtyResource findDirtyResourcebyURIorNormalizedURI(org.eclipse.emf.common.util.URI uri)
public IExternalContentSupport.IExternalContentProvider getActualContentProvider()
getActualContentProvider in interface IExternalContentSupport.IExternalContentProviderpublic boolean hasContent(org.eclipse.emf.common.util.URI uri)
hasContent in interface IExternalContentSupport.IExternalContentProviderpublic boolean isEmpty()
isEmpty in interface ISelectablepublic Iterable<IEObjectDescription> getExportedObjects()
getExportedObjects in interface ISelectablepublic Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
getExportedObjects in interface ISelectablepublic Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
getExportedObjectsByObject in interface ISelectablepublic Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
getExportedObjectsByType in interface ISelectablepublic List<org.eclipse.emf.common.util.URI> getDirtyResourceURIs()
getDirtyResourceURIs in interface IDirtyStateManagerExtensionCopyright © 2016. All Rights Reserved.