Exemplo n.º 1
0
 public void findIndexedReferences(
     final IQueryData queryData,
     final IAcceptor<IReferenceDescription> acceptor,
     IProgressMonitor monitor) {
   findIndexedReferences(
       queryData.getTargetURIs(), acceptor, queryData.getResultFilter(), monitor);
 }
Exemplo n.º 2
0
 /** @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);
       }
     }
   }
 }