public interface IIndexSearchManager
The queries are executed synchronously by default. All the methods take in a
progress monitor through which the progress is reported. Alternatively the
utility class QueryJob
can be used to execute the queries
asynchronously.
Usage:
Run a query synchronously: try { IRunnableWithProgress runnable = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException,InterruptedException { //create an index context: IndexContext context = IndexContext.createDefaultContext(new ResourceSetImpl()); context.getOptions().put(IndexContext.SEARCH_UNLOADED_RESOURCES, Boolean.TRUE); context.getOptions().put(IndexContext.RESOLVE_PROXIES, Boolean.FALSE); BookOnTape b1 = getBookOnTape(); // The EObject try { Collection objects = IIndexSearchManager.INSTANCE.findReferencedEObjects(context, b1, EXTLibraryPackage.eINSTANCE.getBookOnTape_Author(), EXTLibraryPackage.eINSTANCE.getWriter(), monitor); } catch (IndexException ) { // Handle the exception } }; }; new ProgressMonitorDialog(workbenchWindow.getShell()).run(false, true, runnable); } catch (InvocationTargetException e) { // handle exception } catch (InterruptedException e) { // handle exception }
Run a query asynchronously: Create the job: QueryJob job = new QueryJob("Example Query") { protected Collection doRun(IProgressMonitor monitor) { // create the index context IndexContext context = IndexContext.createDefaultContext(new ResourceSetImpl()); // run the query Collection result = Collections.EMPTY_LIST; result = IIndexSearchManager.INSTANCE.findEObjects(context, EXTLibraryPackage.eINSTANCE. .getBookOnTape(), monitor); // return the result return result; }; }; Schedule the job: job.schedule(); Get the results: job.getResults();
Modifier and Type | Field and Description |
---|---|
static IIndexSearchManager |
INSTANCE
The following variable provides access to the one instance of the Index
Manager.
|
Modifier and Type | Method and Description |
---|---|
<T extends org.eclipse.emf.ecore.EObject> |
findAllContainedEObjects(IndexContext context,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return map of EObjects to their contained objects of the
given type starting at the specified EObject and recursively their
contained eObjects at the given containment reference feature.
|
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> |
findAllExports(IndexContext context,
org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all the resources that directly import the given
resource and recursively their exports.
|
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> |
findAllImports(IndexContext context,
org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all the resources that are directly imported by a
given resource and recursively their imports.
|
<T extends org.eclipse.emf.ecore.EObject> |
findAllReferencedEObjects(IndexContext context,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return map of EObjects to their referenced objects of
the given type starting at the specified EObject and recursively their
references at the given reference feature.
|
<T extends org.eclipse.emf.ecore.EObject> |
findAllReferencingEObjects(IndexContext context,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return map of EObjects to their referencers of the given
type starting at the specified EObject and recursively their referencers
at the given reference feature.
|
<T1,T2 extends org.eclipse.emf.ecore.EObject> |
findContainedEObjects(IndexContext context,
java.util.Collection<T1> eObjectsOrURIs,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all EObjects of the given class type that are
contained by the collection of specified EObjects at the given
containment reference feature.
|
<T extends org.eclipse.emf.ecore.EObject> |
findContainedEObjects(IndexContext context,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all EObjects of the given class type that are
contained by the given EObject at the given containment reference
feature.
|
<T extends org.eclipse.emf.ecore.EObject> |
findContainedEObjects(IndexContext context,
org.eclipse.emf.common.util.URI uri,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all EObjects of the given class type that are
referenced by the given URI at the given containment reference feature.
|
<T1 extends org.eclipse.emf.ecore.EObject,T2 extends org.eclipse.emf.ecore.EObject> |
findContainer(IndexContext context,
java.util.Collection<T1> eObjects,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return the containers of the given EObjects.
|
<T extends org.eclipse.emf.ecore.EObject> |
findContainer(IndexContext context,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return the container of the given EObject.
|
<T extends org.eclipse.emf.ecore.EObject> |
findContainer(IndexContext context,
org.eclipse.emf.common.util.URI uri,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return the container of the given EObject's URI.
|
<T extends org.eclipse.emf.ecore.EObject> |
findEObjects(IndexContext context,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all EObjects of the given class type.
|
<T extends org.eclipse.emf.ecore.EObject> |
findEObjects(IndexContext context,
java.lang.Object value,
org.eclipse.emf.ecore.EAttribute eAttribute,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all EObjects of the given class type that
reference the given value at the given attribute feature.
|
<T extends org.eclipse.emf.ecore.EObject> |
findEObjects(IndexContext context,
java.lang.String pattern,
boolean ignoreCase,
org.eclipse.emf.ecore.EAttribute eAttributeFeature,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all EObjects of the specified class type that
reference string values containing the specified pattern through the
given attribute feature.
|
<T extends org.eclipse.emf.ecore.EObject> |
findEObjects(IndexContext context,
java.lang.String uriFragment,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
Return the EObjects that resolve for the given URI
URI.fragment()
fragment. |
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> |
findExports(IndexContext context,
org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all the resources that directly import the given
resource.
|
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> |
findImports(IndexContext context,
org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all the resources that are directly imported by a
given resource.
|
<T1 extends org.eclipse.emf.ecore.EObject,T2 extends org.eclipse.emf.ecore.EObject> |
findReferencedEObjects(IndexContext context,
java.util.Collection<T1> eObjects,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method returns a map of EObjects to their referenced eObjects of the
given type that reference objects in the given collection at the given
non-containment reference feature.
|
<T extends org.eclipse.emf.ecore.EObject> |
findReferencedEObjects(IndexContext context,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all EObjects of the given class type that are
referenced by the given EObject at the given non-containment reference
feature.
|
<T extends org.eclipse.emf.ecore.EObject> |
findReferencedEObjects(IndexContext context,
org.eclipse.emf.common.util.URI uri,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all EObjects of the given class type that are
referenced by the given URI at the given non-containment reference
feature.
|
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> |
findReferencedResources(IndexContext context,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all resources that are referenced by the given
EObject.
|
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> |
findReferencedResources(IndexContext context,
org.eclipse.emf.common.util.URI uri,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all resources that are referenced by the given
EObject URI.
|
<T1,T2 extends org.eclipse.emf.ecore.EObject> |
findReferencingEObjects(IndexContext context,
java.util.Collection<T1> eObjectsOrUris,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method returns a map of EObjects to their referencers of the given
type that reference objects in the given collection of eObjects at the
given reference feature.
|
<T extends org.eclipse.emf.ecore.EObject> |
findReferencingEObjects(IndexContext context,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all EObjects of the given type that reference a
given EObject at the given reference feature.
|
<T extends org.eclipse.emf.ecore.EObject> |
findReferencingEObjects(IndexContext context,
org.eclipse.emf.common.util.URI uri,
org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EClass eClass,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all EObjects of the given type that reference a
given URI at the given reference feature.
|
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> |
findReferencingResources(IndexContext context,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all the resources that directly reference the
given EObject.
|
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> |
findReferencingResources(IndexContext context,
org.eclipse.emf.common.util.URI uri,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return all the resources that directly reference the
given EObject URI.
|
<T1 extends org.eclipse.emf.ecore.EObject,T2> |
findValue(IndexContext context,
java.util.Collection<T1> eObjects,
org.eclipse.emf.ecore.EAttribute eAttribute,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method returns a map of EObjects to their values for the given
attribute feature
|
<T> T |
findValue(IndexContext context,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EAttribute eAttribute,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return the value of the given attribute feature given an
EObject.
|
<T> T |
findValue(IndexContext context,
org.eclipse.emf.common.util.URI uri,
org.eclipse.emf.ecore.EAttribute eAttribute,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method will return the value of the given attribute feature given a
EObject's URI.
|
static final IIndexSearchManager INSTANCE
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> findImports(IndexContext context, org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.resource
- The importing resource.monitor
- the progress monitor or null
IndexException
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> findExports(IndexContext context, org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.resource
- The imported resource.monitor
- the progress monitor or null
IndexException
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> findAllImports(IndexContext context, org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.resource
- The importing resource.monitor
- the progress monitor or null
IndexException
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> findAllExports(IndexContext context, org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.resource
- the imported resourcemonitor
- the progress monitor or null
IndexException
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> findReferencingResources(IndexContext context, org.eclipse.emf.ecore.EObject eObject, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObject
- The referenced EObjectmonitor
- the progress monitor or null
IndexException
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> findReferencingResources(IndexContext context, org.eclipse.emf.common.util.URI uri, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.uri
- The referenced URI.monitor
- the progress monitor or null
IndexException
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> findReferencedResources(IndexContext context, org.eclipse.emf.ecore.EObject eObject, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObject
- The referencing EObjectmonitor
- the progress monitor or null
IndexException
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> findReferencedResources(IndexContext context, org.eclipse.emf.common.util.URI uri, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.uri
- The referencing EObject's URI.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Collection<T> findEObjects(IndexContext context, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eClass
- The given class type.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Collection<T> findEObjects(IndexContext context, java.lang.Object value, org.eclipse.emf.ecore.EAttribute eAttribute, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.value
- The given valueeAttribute
- The given attribute featureeClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Collection<T> findEObjects(IndexContext context, java.lang.String pattern, boolean ignoreCase, org.eclipse.emf.ecore.EAttribute eAttributeFeature, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.pattern
- The specified patternignoreCase
- The boolean flag to spcify whether to ignore case sensitivity
or noteAttributeFeature
- The given attribute feature or null
. If null
then the search engine will check for all the attribute
features in the indexeClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Collection<T> findReferencingEObjects(IndexContext context, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObject
- The given EObjecteReference
- The given reference feature or null
.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T1,T2 extends org.eclipse.emf.ecore.EObject> java.util.Map<T1,java.util.Collection<T2>> findReferencingEObjects(IndexContext context, java.util.Collection<T1> eObjectsOrUris, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObjectsOrUris
- The collection of eObjects or URIseReference
- The given reference feature or null
.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<T>> findAllReferencingEObjects(IndexContext context, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObject
- The given EObjecteReference
- The given reference feature or null.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<T>> findAllReferencedEObjects(IndexContext context, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObject
- The given EObjecteReference
- The given reference feature or null.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Map<org.eclipse.emf.ecore.EObject,java.util.Collection<T>> findAllContainedEObjects(IndexContext context, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObject
- The given EObjecteReference
- The given reference feature or null.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Collection<T> findReferencingEObjects(IndexContext context, org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.uri
- The given URI.eReference
- The given reference feature or null
.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T> T findValue(IndexContext context, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute eAttribute, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObject
- The given EObjecteAttribute
- The given attribute feature.monitor
- the progress monitor or null
IndexException
<T1 extends org.eclipse.emf.ecore.EObject,T2> java.util.Map<T1,T2> findValue(IndexContext context, java.util.Collection<T1> eObjects, org.eclipse.emf.ecore.EAttribute eAttribute, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObjects
- The collection of eObjectseAttribute
- The given attribute feature.monitor
- the progress monitor or null
IndexException
<T> T findValue(IndexContext context, org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EAttribute eAttribute, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.uri
- The given EObject's URI.eAttribute
- The given attribute feature.monitor
- the progress monitor or null
IndexException
<T1 extends org.eclipse.emf.ecore.EObject,T2 extends org.eclipse.emf.ecore.EObject> java.util.Map<T1,java.util.Collection<T2>> findReferencedEObjects(IndexContext context, java.util.Collection<T1> eObjects, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObjects
- The collection of EObjectseReference
- The given reference feature or null
.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Collection<T> findReferencedEObjects(IndexContext context, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObject
- The given EObjecteReference
- The given reference feature or null
.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Collection<T> findReferencedEObjects(IndexContext context, org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.uri
- The given URI.eReference
- The given reference feature.eClass
- The given class type.monitor
- the progress monitor or null
IndexException
<T1,T2 extends org.eclipse.emf.ecore.EObject> java.util.Map<T1,java.util.Collection<T2>> findContainedEObjects(IndexContext context, java.util.Collection<T1> eObjectsOrURIs, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObjectsOrURIs
- The collection of EObjects or URIseReference
- The given reference feature or null
.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Collection<T> findContainedEObjects(IndexContext context, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObject
- The given EObjecteReference
- The given reference feature or null
.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Collection<T> findContainedEObjects(IndexContext context, org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.uri
- The given EObject's URI.eReference
- The given reference feature or null
.eClass
- The given class type or null
.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> T findContainer(IndexContext context, org.eclipse.emf.ecore.EObject eObject, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObject
- The given EObjectmonitor
- the progress monitor or null
IndexException
<T1 extends org.eclipse.emf.ecore.EObject,T2 extends org.eclipse.emf.ecore.EObject> java.util.Map<T1,T2> findContainer(IndexContext context, java.util.Collection<T1> eObjects, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.eObjects
- The collection of EObjectsmonitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> T findContainer(IndexContext context, org.eclipse.emf.common.util.URI uri, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
context
- The context of the search.uri
- The given URI.monitor
- the progress monitor or null
IndexException
<T extends org.eclipse.emf.ecore.EObject> java.util.Collection<T> findEObjects(IndexContext context, java.lang.String uriFragment, org.eclipse.emf.ecore.EClass eClass, org.eclipse.core.runtime.IProgressMonitor monitor) throws IndexException
URI.fragment()
fragment. The returned objects will be of the specified EClass.context
- The context of the search.uriFragment
- The uri fragmenteClass
- The EClass or null
monitor
- progress monitorIndexException