public interface IReferenceFinder
DefaultResourceDescriptionStrategy
for details on the indexing process.
Local references are usually not indexed, and they don't have to be as the scope provider usually takes local
elements into account. This is why the reference finder needs an IReferenceFinder.ILocalResourceAccess
if such local
references should be found, too.Modifier and Type | Interface and Description |
---|---|
static interface |
IReferenceFinder.ILocalResourceAccess
Provides safe read access to a resource set for searching local references.
|
Modifier and Type | Method and Description |
---|---|
void |
findAllReferences(java.lang.Iterable<org.eclipse.emf.common.util.URI> targetURIs,
IReferenceFinder.ILocalResourceAccess localResourceAccess,
IAcceptor<IReferenceDescription> referenceAcceptor,
org.eclipse.core.runtime.IProgressMonitor monitor)
Finds all references to the given
targetURIs . |
void |
findReferences(java.lang.Iterable<org.eclipse.emf.common.util.URI> targetURIs,
java.lang.Iterable<org.eclipse.emf.common.util.URI> sourceResourceURIs,
IReferenceFinder.ILocalResourceAccess localResourceAccess,
IAcceptor<IReferenceDescription> referenceAcceptor,
org.eclipse.core.runtime.IProgressMonitor monitor)
Finds all references from an iterable of source resources to the given
targetURIs . |
void findReferences(java.lang.Iterable<org.eclipse.emf.common.util.URI> targetURIs, java.lang.Iterable<org.eclipse.emf.common.util.URI> sourceResourceURIs, IReferenceFinder.ILocalResourceAccess localResourceAccess, IAcceptor<IReferenceDescription> referenceAcceptor, org.eclipse.core.runtime.IProgressMonitor monitor)
targetURIs
.targetURIs
- the URIs of the target elements of the references. Should be normalized.sourceResourceURIs
- the search scope for the resources containing the sources of the references.localResourceAccess
- used to find local references. If null, only indexed references are returned.referenceAcceptor
- accepts the matches.monitor
- the progress monitor. Can be null.void findAllReferences(java.lang.Iterable<org.eclipse.emf.common.util.URI> targetURIs, IReferenceFinder.ILocalResourceAccess localResourceAccess, IAcceptor<IReferenceDescription> referenceAcceptor, org.eclipse.core.runtime.IProgressMonitor monitor)
targetURIs
.targetURIs
- the URIs of the target elements of the references. Should be normalized.localResourceAccess
- used to find local references. If null, only indexed references are returned.referenceAcceptor
- accepts the matches.monitor
- the progress monitor. Can be null.