public class LiveShadowedResourceDescriptions extends ResourceSetBasedResourceDescriptions
The implementation now manages local resources using an injected ResourceSetBasedResourceDescriptions
field. The class only inherits from ResourceSetBasedResourceDescriptions to remain backwards
compatible with the initial 2.1 release.
IResourceDescriptions.IContextAware, IResourceDescriptions.NullImpl| Constructor and Description |
|---|
LiveShadowedResourceDescriptions() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet() |
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.
|
protected boolean |
isExistingOrRenamedResourceURI(org.eclipse.emf.common.util.URI uri) |
protected java.lang.Iterable<IEObjectDescription> |
joinIterables(java.lang.Iterable<IEObjectDescription> liveDescriptions,
java.lang.Iterable<IEObjectDescription> persistentDescriptions) |
void |
setContext(org.eclipse.emf.common.notify.Notifier ctx) |
getSelectables, setRegistry, toStringpublic void setContext(org.eclipse.emf.common.notify.Notifier ctx)
setContext in interface IResourceDescriptions.IContextAwaresetContext in class ResourceSetBasedResourceDescriptionspublic IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
IResourceDescriptionsgetResourceDescription in interface IResourceDescriptionsgetResourceDescription in class ResourceSetBasedResourceDescriptionspublic java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
getAllResourceDescriptions in interface IResourceDescriptionsgetAllResourceDescriptions in class ResourceSetBasedResourceDescriptionspublic boolean isEmpty()
ISelectablefalse if it is too expensive to compute the actual result.isEmpty in interface ISelectableisEmpty in class ResourceSetBasedResourceDescriptionstrue if the selectable does not provide any descriptions.public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
getResourceSet in class ResourceSetBasedResourceDescriptionsprotected boolean hasDescription(org.eclipse.emf.common.util.URI uri)
hasDescription in class ResourceSetBasedResourceDescriptionsprotected boolean isExistingOrRenamedResourceURI(org.eclipse.emf.common.util.URI uri)
public java.lang.Iterable<IEObjectDescription> getExportedObjects()
getExportedObjects in interface ISelectablegetExportedObjects in class ResourceSetBasedResourceDescriptionsnull.public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
getExportedObjects in interface ISelectablegetExportedObjects in class ResourceSetBasedResourceDescriptionsnull.protected java.lang.Iterable<IEObjectDescription> joinIterables(java.lang.Iterable<IEObjectDescription> liveDescriptions, java.lang.Iterable<IEObjectDescription> persistentDescriptions)
public java.lang.Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
getExportedObjectsByType in interface ISelectablegetExportedObjectsByType in class ResourceSetBasedResourceDescriptionsnull.public java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
getExportedObjectsByObject in interface ISelectablegetExportedObjectsByObject in class ResourceSetBasedResourceDescriptionsnull.