Class TextSearchReferenceFinder
- java.lang.Object
-
- com._1c.g5.v8.dt.search.core.refs.TextSearchReferenceFinder
-
public class TextSearchReferenceFinder extends Object
Special reference finder. It contains logic for creating references by results of full text search for source element. Usually, users should not override this class - all special logic for references finder should be implement inITextSearchReferenceFinderSupplier
- See Also:
TextSearchReferenceFinderFactory
-
-
Constructor Summary
Constructors Constructor Description TextSearchReferenceFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<ITextSearchReferenceResult>
createReferenceSearchResult(Collection<Match> correctResults, org.eclipse.core.runtime.IProgressMonitor pm)
Create concreteITextSearchReferenceResult
s for correct full text search resultsCollection<ITextSearchReferenceResult>
findReferences(TextSearchScopeSettings searchScopeSettings, org.eclipse.core.runtime.IProgressMonitor pm)
Creates references description by results of full text search for source elementCollection<ITextSearchReferenceResult>
findReferences(org.eclipse.core.resources.IProject initialProject, IV8ProjectManager projectManager, org.eclipse.core.runtime.IProgressMonitor pm)
Creates references description by results of full text search for source elementvoid
initialize(String name, org.eclipse.emf.ecore.EObject source, ITextSearchReferenceFinderSupplier referenceFinderSupplier)
Constructor
-
-
-
Method Detail
-
initialize
public void initialize(String name, org.eclipse.emf.ecore.EObject source, ITextSearchReferenceFinderSupplier referenceFinderSupplier)
Constructor- Parameters:
name
- old name of the renaming element, cannot benull
source
- actual renaming object, cannot benull
refactoringSupplier
- specialITextSearchReferenceFinderSupplier
for renaming object, cannot benull
-
findReferences
public Collection<ITextSearchReferenceResult> findReferences(TextSearchScopeSettings searchScopeSettings, org.eclipse.core.runtime.IProgressMonitor pm)
Creates references description by results of full text search for source element- Parameters:
searchScopeSettings
- the search scope settings instance, cannot benull
pm
- the progress monitor, cannot benull
- Returns:
- created references description by results of full text search for source element, never
null
-
findReferences
public Collection<ITextSearchReferenceResult> findReferences(org.eclipse.core.resources.IProject initialProject, IV8ProjectManager projectManager, org.eclipse.core.runtime.IProgressMonitor pm)
Creates references description by results of full text search for source element- Parameters:
initialProject
- initialIProject
for find references, can benull
if there is no initial projectprojectManager
- actualIV8ProjectManager
, cannot benull
pm
- the progress monitor, cannot benull
- Returns:
- created references description by results of full text search for source element, never
null
-
createReferenceSearchResult
protected Collection<ITextSearchReferenceResult> createReferenceSearchResult(Collection<Match> correctResults, org.eclipse.core.runtime.IProgressMonitor pm)
Create concreteITextSearchReferenceResult
s for correct full text search results- Parameters:
correctResults
- correct full text search results, cannot benull
pm
- the progress monitor, cannot benull
- Returns:
- concrete
ITextSearchReferenceResult
s for correct full text search results, nevernull
-
-