|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.resource.impl.AbstractResourceDescriptionChangeEventSource
org.eclipse.xtext.ui.editor.DirtyStateManager
public class DirtyStateManager
| Nested Class Summary | |
|---|---|
protected static class |
DirtyStateManager.Event
|
| Constructor Summary | |
|---|---|
DirtyStateManager()
|
|
| Method Summary | |
|---|---|
void |
announceDirtyStateChanged(IDirtyResource dirtyResource)
Announce the dirty state of the given resource. |
void |
discardDirtyState(IDirtyResource dirtyResource)
Mark the given dirty resource as unmanaged. |
IExternalContentSupport.IExternalContentProvider |
getActualContentProvider()
Some use cases may require the latest and most up to date content - mostly in a secured, transactional context such as a rename refactoring. |
java.lang.String |
getContent(org.eclipse.emf.common.util.URI uri)
Get the content that will shadow the persistent state. |
IDirtyResource |
getDirtyResource(org.eclipse.emf.common.util.URI uri)
|
IResourceDescription |
getDirtyResourceDescription(org.eclipse.emf.common.util.URI uri)
|
java.lang.Iterable<IEObjectDescription> |
getExportedObjects()
|
java.lang.Iterable<IEObjectDescription> |
getExportedObjects(org.eclipse.emf.ecore.EClass type,
QualifiedName name,
boolean ignoreCase)
|
java.lang.Iterable<IEObjectDescription> |
getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
|
java.lang.Iterable<IEObjectDescription> |
getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
|
boolean |
hasContent(org.eclipse.emf.common.util.URI uri)
|
boolean |
isEmpty()
Clients may want to check the selectable to skip its processing in case it is empty. |
boolean |
manageDirtyState(IDirtyResource dirtyResource)
Initially try to manage the given resource and its dirty state. |
protected void |
notifyListeners(IDirtyResource dirtyResource,
boolean managed)
|
| Methods inherited from class org.eclipse.xtext.resource.impl.AbstractResourceDescriptionChangeEventSource |
|---|
addListener, addListeners, notifyListeners, removeListener, removeListeners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.xtext.resource.IResourceDescription.Event.Source |
|---|
addListener, removeListener |
| Constructor Detail |
|---|
public DirtyStateManager()
| Method Detail |
|---|
public void announceDirtyStateChanged(IDirtyResource dirtyResource)
IDirtyStateManager
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 java.lang.String getContent(org.eclipse.emf.common.util.URI uri)
IExternalContentSupport.IExternalContentProvider
getContent in interface IExternalContentSupport.IExternalContentProviderpublic IExternalContentSupport.IExternalContentProvider getActualContentProvider()
IExternalContentSupport.IExternalContentProvider
getActualContentProvider in interface IExternalContentSupport.IExternalContentProviderpublic boolean hasContent(org.eclipse.emf.common.util.URI uri)
hasContent in interface IExternalContentSupport.IExternalContentProvidertrue if and only if external content should be used instead of the persistent one.public boolean isEmpty()
ISelectablefalse if it is too expensive to compute the actual result.
isEmpty in interface ISelectabletrue if the selectable does not provide any descriptions.public java.lang.Iterable<IEObjectDescription> getExportedObjects()
getExportedObjects in interface ISelectablenull.
public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type,
QualifiedName name,
boolean ignoreCase)
getExportedObjects in interface ISelectablenull.public java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
getExportedObjectsByObject in interface ISelectablenull.public java.lang.Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
getExportedObjectsByType in interface ISelectablenull.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||