Class FullTextSearchRefactoringParticipant
- java.lang.Object
-
- com._1c.g5.v8.dt.search.core.AbstractFullTextSearchProcessor
-
- com._1c.g5.v8.dt.search.core.refactoring.FullTextSearchRefactoringParticipant
-
public class FullTextSearchRefactoringParticipant extends AbstractFullTextSearchProcessor
Special refactoring participant. It contains logic for creating refactoring changes by results of full text search for renaming element. Usually, users should not override this class - all special logic for refactoring should be implement inFullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
Special supplier for refactoring by results of full text search.
-
Constructor Summary
Constructors Constructor Description FullTextSearchRefactoringParticipant(String oldName, org.eclipse.emf.ecore.EObject context, FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier refactoringSupplier, IProjectFileSystemSupportProvider fileSystemSupportProvider)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<org.eclipse.ltk.core.refactoring.Change>
createChangeBySearchResult(Collection<IDtMatchProvider> correctResults, org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, String newName)
Create concreteChange
s for correct full text search resultsCollection<org.eclipse.ltk.core.refactoring.Change>
createRefactoringChange(org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, String newName, Set<SearchFor> searchFors, Set<SearchIn> searchIns, Set<SearchScope> searchScopes, Set<String> projectNames, org.eclipse.core.runtime.IProgressMonitor pm)
Creates refactoring change by results of full text search for renaming elementCollection<org.eclipse.ltk.core.refactoring.Change>
createRefactoringChange(org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, String newName, org.eclipse.core.runtime.IProgressMonitor pm)
Creates refactoring change by results of full text search for renaming element-
Methods inherited from class com._1c.g5.v8.dt.search.core.AbstractFullTextSearchProcessor
getProjectScope
-
-
-
-
Constructor Detail
-
FullTextSearchRefactoringParticipant
public FullTextSearchRefactoringParticipant(String oldName, org.eclipse.emf.ecore.EObject context, FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier refactoringSupplier, IProjectFileSystemSupportProvider fileSystemSupportProvider)
Constructor- Parameters:
oldName
- old name of the renaming element, cannot benull
context
- actual renaming object, cannot benull
refactoringSupplier
- specialFullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
for renaming object, cannot benull
fileSystemSupportProvider
- actualIProjectFileSystemSupportProvider
, cannot benull
-
-
Method Detail
-
createRefactoringChange
public Collection<org.eclipse.ltk.core.refactoring.Change> createRefactoringChange(org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, String newName, Set<SearchFor> searchFors, Set<SearchIn> searchIns, Set<SearchScope> searchScopes, Set<String> projectNames, org.eclipse.core.runtime.IProgressMonitor pm)
Creates refactoring change by results of full text search for renaming element- Parameters:
normalRefactoringChange
-Change
s from usual refactoring, cannot benull
newName
- new name of the renaming element, cannot benull
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 refactoring changes by results of full text search for renaming element,
never
null
if there is no changes
-
createRefactoringChange
public Collection<org.eclipse.ltk.core.refactoring.Change> createRefactoringChange(org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, String newName, org.eclipse.core.runtime.IProgressMonitor pm)
Creates refactoring change by results of full text search for renaming element- Parameters:
normalRefactoringChange
-Change
s from usual refactoring, cannot benull
newName
- new name of the renaming element, cannot benull
pm
- the progress monitor, cannot benull
- Returns:
- created refactoring changes by results of full text search for renaming element,
never
null
if there is no changes
-
createChangeBySearchResult
protected Collection<org.eclipse.ltk.core.refactoring.Change> createChangeBySearchResult(Collection<IDtMatchProvider> correctResults, org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, String newName)
Create concreteChange
s for correct full text search results- Parameters:
correctResults
- correct full text search results, cannot benull
normalRefactoringChange
- refactoring change, if we found correct full text search match in file with normal refactoring changes, we should add full text search changes to exiting change, cannot benull
newName
- new name of the renaming element, cannot benull
- Returns:
- concrete
Change
s for correct full text search results, nevernull
-
-