Class FullTextSearchReferenceFinder
- java.lang.Object
-
- com._1c.g5.v8.dt.search.core.AbstractFullTextSearchProcessor
-
- com._1c.g5.v8.dt.search.core.findref.FullTextSearchReferenceFinder
-
public class FullTextSearchReferenceFinder extends AbstractFullTextSearchProcessor
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 inFullTextSearchReferenceFinder.IFullTextSearchReferenceFinderSupplier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FullTextSearchReferenceFinder.IFullTextSearchReferenceFinderSupplier
Special supplier for references finder by results of full text search.static interface
FullTextSearchReferenceFinder.IFullTextSearchReferenceResult
Result of references finder by full text search
-
Constructor Summary
Constructors Constructor Description FullTextSearchReferenceFinder(String name, org.eclipse.emf.ecore.EObject source, FullTextSearchReferenceFinder.IFullTextSearchReferenceFinderSupplier referenceFinderSupplier, IProjectFileSystemSupportProvider fileSystemSupportProvider)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<FullTextSearchReferenceFinder.IFullTextSearchReferenceResult>
createReferenceSearchResult(Collection<IDtMatchProvider> correctResults, org.eclipse.core.runtime.IProgressMonitor pm)
Create concreteFullTextSearchReferenceFinder.IFullTextSearchReferenceResult
s for correct full text search resultsCollection<FullTextSearchReferenceFinder.IFullTextSearchReferenceResult>
findReferences(Set<SearchFor> searchFors, Set<SearchIn> searchIns, Set<SearchScope> searchScopes, Set<String> projectNames, org.eclipse.core.runtime.IProgressMonitor pm)
Creates references description by results of full text search for source elementCollection<FullTextSearchReferenceFinder.IFullTextSearchReferenceResult>
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-
Methods inherited from class com._1c.g5.v8.dt.search.core.AbstractFullTextSearchProcessor
getProjectScope
-
-
-
-
Constructor Detail
-
FullTextSearchReferenceFinder
public FullTextSearchReferenceFinder(String name, org.eclipse.emf.ecore.EObject source, FullTextSearchReferenceFinder.IFullTextSearchReferenceFinderSupplier referenceFinderSupplier, IProjectFileSystemSupportProvider fileSystemSupportProvider)
Constructor- Parameters:
name
- old name of the renaming element, cannot benull
source
- actual renaming object, cannot benull
refactoringSupplier
- specialFullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
for renaming object, cannot benull
fileSystemSupportProvider
- actualIProjectFileSystemSupportProvider
, cannot benull
-
-
Method Detail
-
findReferences
public Collection<FullTextSearchReferenceFinder.IFullTextSearchReferenceResult> findReferences(Set<SearchFor> searchFors, Set<SearchIn> searchIns, Set<SearchScope> searchScopes, Set<String> projectNames, org.eclipse.core.runtime.IProgressMonitor pm)
Creates references description by results of full text search for source element- Parameters:
searchFors
- what to search for, cannot benull
. If collection is empty then all context types will be included to searchsearchIns
- where to search, cannot benull
. If collection is empty then all context places will be included to searchsearchScopes
- the search scope, cannot benull
. If collection is empty then all search scopes will be included to searchprojectNames
- the names of the projects where to search, cannot benull
. If collection is empty then all project will be included to searchpm
- the progress monitor, cannot benull
- Returns:
- created references description by results of full text search for source element,
never
null
-
findReferences
public Collection<FullTextSearchReferenceFinder.IFullTextSearchReferenceResult> 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<FullTextSearchReferenceFinder.IFullTextSearchReferenceResult> createReferenceSearchResult(Collection<IDtMatchProvider> correctResults, org.eclipse.core.runtime.IProgressMonitor pm)
Create concreteFullTextSearchReferenceFinder.IFullTextSearchReferenceResult
s for correct full text search results- Parameters:
correctResults
- correct full text search results, cannot benull
pm
- the progress monitor, cannot benull
- Returns:
- concrete
FullTextSearchReferenceFinder.IFullTextSearchReferenceResult
s for correct full text search results, nevernull
-
-