public class EagerResourceSetBasedResourceDescriptions extends AbstractCompoundSelectable implements IResourceDescriptions.IContextAware
IResourceDescriptions
which indexes a given resource set the first time it is used (i.e.
getAllResourceDescriptions()
is called).IResourceDescriptions.IContextAware, IResourceDescriptions.NullImpl
Constructor and Description |
---|
EagerResourceSetBasedResourceDescriptions() |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<IResourceDescription> |
getAllResourceDescriptions() |
IResourceDescription |
getResourceDescription(org.eclipse.emf.common.util.URI uri)
Returns the resource descriptions for the given URI.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet() |
protected java.lang.Iterable<? extends ISelectable> |
getSelectables() |
protected boolean |
hasDescription(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.
|
void |
setContext(org.eclipse.emf.common.notify.Notifier ctx) |
void |
setRegistry(IResourceServiceProvider.Registry registry) |
java.lang.String |
toString() |
getExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByType
public EagerResourceSetBasedResourceDescriptions()
public java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
getAllResourceDescriptions
in interface IResourceDescriptions
public void setRegistry(IResourceServiceProvider.Registry registry)
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
protected java.lang.Iterable<? extends ISelectable> getSelectables()
getSelectables
in class AbstractCompoundSelectable
public boolean isEmpty()
ISelectable
false
if it is too expensive to compute the actual result.isEmpty
in interface ISelectable
isEmpty
in class AbstractCompoundSelectable
true
if the selectable does not provide any descriptions.protected boolean hasDescription(org.eclipse.emf.common.util.URI uri)
public void setContext(org.eclipse.emf.common.notify.Notifier ctx)
setContext
in interface IResourceDescriptions.IContextAware
public java.lang.String toString()
toString
in class java.lang.Object
public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
IResourceDescriptions
getResourceDescription
in interface IResourceDescriptions