public void findIndexedReferences( final IQueryData queryData, final IAcceptor<IReferenceDescription> acceptor, IProgressMonitor monitor) { findIndexedReferences( queryData.getTargetURIs(), acceptor, queryData.getResultFilter(), monitor); }
public void findAllReferences( IQueryData queryData, ILocalResourceAccess localResourceAccess, final IAcceptor<IReferenceDescription> acceptor, IProgressMonitor monitor) { final SubMonitor subMonitor = SubMonitor.convert(monitor, 2); if (!queryData.getTargetURIs().isEmpty()) { findLocalReferences(queryData, localResourceAccess, acceptor, subMonitor.newChild(1)); findIndexedReferences(queryData, acceptor, subMonitor.newChild(1)); } }
/** @since 2.0 */ public void findIndexedReferences( IQueryData queryData, URI resourceURI, IAcceptor<IReferenceDescription> acceptor, IProgressMonitor progressMonitor) { IResourceDescription resourceDescription = index.getResourceDescription(resourceURI.trimFragment()); if (resourceDescription != null) { for (IReferenceDescription referenceDescription : resourceDescription.getReferenceDescriptions()) { if (queryData.getTargetURIs().contains(referenceDescription.getTargetEObjectUri()) && (queryData.getResultFilter() == null || queryData.getResultFilter().apply(referenceDescription))) { acceptor.accept(referenceDescription); } } } }