Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 itemis AG (http://www.itemis.eu) and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html /
 
 package org.eclipse.xtext.ui.editor.findrefs;
 
import  org.eclipse.core.runtime.IProgressMonitor;
Finds cross-references to elements specified by their URIs. References can be from other resources or local. To be referrable from another resource, an element has to be indexed. By default, the index keeps track of such cross resource references. See 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 ILocalResourceAccess if such local references should be found, too.

Author(s):
Jan Koehnlein - Initial contribution and API
Since:
2.3
public interface IReferenceFinder {

Provides safe read access to a resource set for searching local references.
	}

Finds all references from an iterable of source resources to the given targetURIs.

Parameters:
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.
			Iterable<URItargetURIs,
			Iterable<URIsourceResourceURIs,
			ILocalResourceAccess localResourceAccess,
			IAcceptor<IReferenceDescriptionreferenceAcceptor,
			IProgressMonitor monitor);

Finds all references to the given targetURIs.

Parameters:
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.
			Iterable<URItargetURIs,
			ILocalResourceAccess localResourceAccess,
			IAcceptor<IReferenceDescriptionreferenceAcceptor,
			IProgressMonitor monitor);
New to GrepCode? Check out our FAQ X