public class CurrentDescriptions extends org.eclipse.emf.common.notify.impl.AdapterImpl implements IResourceDescriptions
Modifier and Type | Class and Description |
---|---|
static class |
CurrentDescriptions.ResourceSetAware
Context-aware instance of our index.
|
IResourceDescriptions.IContextAware, IResourceDescriptions.NullImpl
Constructor and Description |
---|
CurrentDescriptions(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
ResourceDescriptionsData newData)
Create a new index based on an old one.
|
CurrentDescriptions(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
ResourceDescriptionsData newData,
BuildData buildData)
Create a new index based on an old one.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<IResourceDescription> |
getAllResourceDescriptions()
Return the full contents of the index.
|
BuildData |
getBuildData() |
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)
Return the resource description for a URI.
|
boolean |
isAdapterForType(java.lang.Object type) |
boolean |
isEmpty()
Clients may want to check the selectable to skip its processing in case it is empty.
|
void |
register(IResourceDescription.Delta delta)
Put a new resource description into the index, or remove one if the delta has no new description.
|
public CurrentDescriptions(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, ResourceDescriptionsData newData)
resourceSet
- The resource setnewData
- the new index state.public CurrentDescriptions(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, ResourceDescriptionsData newData, BuildData buildData)
resourceSet
- The resource setnewData
- the new index state.buildData
- the currently processed builddatapublic BuildData getBuildData()
public void register(IResourceDescription.Delta delta)
delta
- The resource change.public java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
getAllResourceDescriptions
in interface IResourceDescriptions
public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
getResourceDescription
in interface IResourceDescriptions
uri
- The URIpublic boolean isEmpty()
ISelectable
false
if it is too expensive to compute the actual result.isEmpty
in interface ISelectable
true
if the selectable does not provide any descriptions.public java.lang.Iterable<IEObjectDescription> getExportedObjects()
getExportedObjects
in interface ISelectable
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
getExportedObjects
in interface ISelectable
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
getExportedObjectsByType
in interface ISelectable
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
getExportedObjectsByObject
in interface ISelectable
null
.public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
isAdapterForType
in class org.eclipse.emf.common.notify.impl.AdapterImpl
true
if the given type is class CurrentDescriptions
.