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 |
|---|---|
Iterable<IResourceDescription> |
getAllResourceDescriptions() |
Iterable<IEObjectDescription> |
getExportedObjects() |
Iterable<IEObjectDescription> |
getExportedObjects(org.eclipse.emf.ecore.EClass type,
QualifiedName name,
boolean ignoreCase) |
Iterable<IEObjectDescription> |
getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object) |
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 Iterable<IEObjectDescription> |
joinIterables(Iterable<IEObjectDescription> liveDescriptions,
Iterable<IEObjectDescription> persistentDescriptions) |
void |
setContext(org.eclipse.emf.common.notify.Notifier ctx) |
void |
setGlobalDescriptions(IResourceDescriptions globalDescriptions) |
void |
setLocalDescriptions(ResourceSetBasedResourceDescriptions localDescriptions) |
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 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 Iterable<IEObjectDescription> getExportedObjects()
getExportedObjects in interface ISelectablegetExportedObjects in class ResourceSetBasedResourceDescriptionsnull.public Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
getExportedObjects in interface ISelectablegetExportedObjects in class ResourceSetBasedResourceDescriptionsnull.protected Iterable<IEObjectDescription> joinIterables(Iterable<IEObjectDescription> liveDescriptions, Iterable<IEObjectDescription> persistentDescriptions)
public Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
getExportedObjectsByType in interface ISelectablegetExportedObjectsByType in class ResourceSetBasedResourceDescriptionsnull.public Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
getExportedObjectsByObject in interface ISelectablegetExportedObjectsByObject in class ResourceSetBasedResourceDescriptionsnull.public IResourceDescriptions getLocalDescriptions()
public IResourceDescriptions getGlobalDescriptions()
public void setGlobalDescriptions(IResourceDescriptions globalDescriptions)
public void setLocalDescriptions(ResourceSetBasedResourceDescriptions localDescriptions)
Copyright © 2015. All Rights Reserved.