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 |
|---|---|
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 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) |
String |
toString() |
getExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByTypepublic EagerResourceSetBasedResourceDescriptions()
public Iterable<IResourceDescription> getAllResourceDescriptions()
getAllResourceDescriptions in interface IResourceDescriptionspublic void setRegistry(IResourceServiceProvider.Registry registry)
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
protected Iterable<? extends ISelectable> getSelectables()
getSelectables in class AbstractCompoundSelectablepublic boolean isEmpty()
ISelectablefalse if it is too expensive to compute the actual result.isEmpty in interface ISelectableisEmpty in class AbstractCompoundSelectabletrue 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.IContextAwarepublic IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
IResourceDescriptionsgetResourceDescription in interface IResourceDescriptionsCopyright © 2015. All Rights Reserved.