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) |
IResourceDescriptions |
getGlobalDescriptions() |
IResourceDescriptions |
getLocalDescriptions() |
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) |
void |
setGlobalDescriptions(IResourceDescriptions globalDescriptions) |
void |
setLocalDescriptions(ResourceSetBasedResourceDescriptions localDescriptions) |
getSelectables, setRegistry, toString
public void setContext(org.eclipse.emf.common.notify.Notifier ctx)
setContext
in interface IResourceDescriptions.IContextAware
setContext
in class ResourceSetBasedResourceDescriptions
public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
IResourceDescriptions
getResourceDescription
in interface IResourceDescriptions
getResourceDescription
in class ResourceSetBasedResourceDescriptions
public java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
getAllResourceDescriptions
in interface IResourceDescriptions
getAllResourceDescriptions
in class ResourceSetBasedResourceDescriptions
public boolean isEmpty()
ISelectable
false
if it is too expensive to compute the actual result.isEmpty
in interface ISelectable
isEmpty
in class ResourceSetBasedResourceDescriptions
true
if the selectable does not provide any descriptions.public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
getResourceSet
in class ResourceSetBasedResourceDescriptions
protected boolean hasDescription(org.eclipse.emf.common.util.URI uri)
hasDescription
in class ResourceSetBasedResourceDescriptions
protected boolean isExistingOrRenamedResourceURI(org.eclipse.emf.common.util.URI uri)
public java.lang.Iterable<IEObjectDescription> getExportedObjects()
getExportedObjects
in interface ISelectable
getExportedObjects
in class ResourceSetBasedResourceDescriptions
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
getExportedObjects
in interface ISelectable
getExportedObjects
in class ResourceSetBasedResourceDescriptions
null
.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 ISelectable
getExportedObjectsByType
in class ResourceSetBasedResourceDescriptions
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
getExportedObjectsByObject
in interface ISelectable
getExportedObjectsByObject
in class ResourceSetBasedResourceDescriptions
null
.public IResourceDescriptions getLocalDescriptions()
public IResourceDescriptions getGlobalDescriptions()
public void setGlobalDescriptions(IResourceDescriptions globalDescriptions)
public void setLocalDescriptions(ResourceSetBasedResourceDescriptions localDescriptions)