public class DirtyStateAwareResourceDescriptions extends AbstractResourceDescriptionChangeEventSource implements IResourceDescriptions, IShadowedResourceDescriptions
Modifier and Type | Class and Description |
---|---|
protected class |
DirtyStateAwareResourceDescriptions.DirtyStateListener |
protected class |
DirtyStateAwareResourceDescriptions.GlobalStateListener |
IResourceDescriptions.IContextAware, IResourceDescriptions.NullImpl
Constructor and Description |
---|
DirtyStateAwareResourceDescriptions(IBuilderState globalDescriptions,
IDirtyStateManager dirtyStateManager,
IStateChangeEventBroker stateChangeEventBroker) |
Modifier and Type | Method and Description |
---|---|
protected IResourceDescription.Delta |
createDelta(IResourceDescription old,
IResourceDescription _new) |
protected IResourceDescription.Event.Listener |
createDirtyStateListener() |
protected IResourceDescription.Event.Listener |
createGlobalStateListener() |
void |
dirtyDescriptionsChanged(IResourceDescription.Event event) |
java.lang.Iterable<IResourceDescription> |
getAllResourceDescriptions() |
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) |
IResourceDescription |
getResourceDescription(org.eclipse.emf.common.util.URI uri)
Returns the resource descriptions for the given URI.
|
void |
globalDescriptionsChanged(IResourceDescription.Event event) |
boolean |
isEmpty()
Clients may want to check the selectable to skip its processing in case it is empty.
|
boolean |
isShadowed(org.eclipse.emf.ecore.EClass type,
QualifiedName name,
boolean ignoreCase) |
protected java.lang.Iterable<IEObjectDescription> |
joinIterables(java.lang.Iterable<IEObjectDescription> dirtyDescriptions,
java.lang.Iterable<IEObjectDescription> persistentDescriptions) |
addListener, addListeners, notifyListeners, removeListener, removeListeners
@Inject public DirtyStateAwareResourceDescriptions(IBuilderState globalDescriptions, IDirtyStateManager dirtyStateManager, IStateChangeEventBroker stateChangeEventBroker)
protected IResourceDescription.Event.Listener createDirtyStateListener()
protected IResourceDescription.Event.Listener createGlobalStateListener()
public void dirtyDescriptionsChanged(IResourceDescription.Event event)
protected IResourceDescription.Delta createDelta(IResourceDescription old, IResourceDescription _new)
public void globalDescriptionsChanged(IResourceDescription.Event event)
public java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
getAllResourceDescriptions
in interface IResourceDescriptions
public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
IResourceDescriptions
getResourceDescription
in interface IResourceDescriptions
public boolean isEmpty()
ISelectable
false
if it is too expensive to compute the actual result.isEmpty
in interface ISelectable
true
if the selectable does not provide any descriptions.public java.lang.Iterable<IEObjectDescription> getExportedObjects()
getExportedObjects
in interface ISelectable
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
getExportedObjects
in interface ISelectable
null
.protected java.lang.Iterable<IEObjectDescription> joinIterables(java.lang.Iterable<IEObjectDescription> dirtyDescriptions, java.lang.Iterable<IEObjectDescription> persistentDescriptions)
public java.lang.Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
getExportedObjectsByType
in interface ISelectable
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
getExportedObjectsByObject
in interface ISelectable
null
.public boolean isShadowed(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
isShadowed
in interface IShadowedResourceDescriptions
EObjectDescription
exists that is shadowed