Interface ITextSearchRefactoringSupplier
-
- All Superinterfaces:
ITextSearchSupplier
- All Known Implementing Classes:
AbstractTextSearchRefactoringSupplierForQlSemanticLanguage
,BasicHtmlTextSearchRefactoringSupplier
,BslTextSearchRefactoringSupplier
,CharacteristicDescriptionTextSearchRefactoringSupplier
,DcsQueryTextSearchRefactoringSupplier
,HtmlDocumentMdReferenceTextSearchRefactoringSupplier
,RightQlTextSearchRefactoringSupplier
,RightTemplateTextSearchRefactoringSupplier
public interface ITextSearchRefactoringSupplier extends ITextSearchSupplier
Special supplier for refactoring by results of full text search. Contains special methods for generating search strings, filtering search results and creating concrete changes for oneIFile
in project. Users should implement it for creating own refactoring logic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Collection<org.eclipse.ltk.core.refactoring.Change>
createChanges(IBmObject bmObject, org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, Collection<TextSearchModelMatch> matches, String oldName, String newName)
Collection<org.eclipse.ltk.core.refactoring.Change>
createChanges(org.eclipse.core.resources.IFile file, org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, Collection<TextSearchFileMatch> matches, String oldName, String newName)
default IBmObject
getGroupingObject(IBmObject matchObject)
Gets object for grouping search result for refactoringCollection<Match>
getMatches(org.eclipse.ltk.core.refactoring.Change change, SimpleSearchResultCollector collector)
Gets all foundMatch
in full text search except matches intersect withchange
-
Methods inherited from interface com._1c.g5.v8.dt.search.core.ITextSearchSupplier
filterSearchResult, getSearchStrings
-
-
-
-
Method Detail
-
createChanges
Collection<org.eclipse.ltk.core.refactoring.Change> createChanges(org.eclipse.core.resources.IFile file, org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, Collection<TextSearchFileMatch> matches, String oldName, String newName)
- Parameters:
file
- concreteIFile
in project containing 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
matches
- collection ofMatch
corresponding to the file, cannot benull
oldName
- original name, cannot benull
newName
- new name of the renaming element, cannot benull
- Returns:
- created
Change
s for concreteIFile
in project and collection ofMatch
corresponding to the file
-
createChanges
Collection<org.eclipse.ltk.core.refactoring.Change> createChanges(IBmObject bmObject, org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, Collection<TextSearchModelMatch> matches, String oldName, String newName)
CreatesChange
s for concreteIBmObject
if there is no IFile for it and collection ofMatch
corresponding to the this object- Parameters:
bmObject
- concreteIBmObject
containing 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
matches
- collection ofMatch
corresponding to the file, cannot benull
oldName
- original name, cannot benull
newName
- new name of the renaming element, cannot benull
- Returns:
- created
Change
s for concreteIBmObject
in project and collection ofMatch
corresponding to the object
-
getMatches
Collection<Match> getMatches(org.eclipse.ltk.core.refactoring.Change change, SimpleSearchResultCollector collector)
Gets all foundMatch
in full text search except matches intersect withchange
- Parameters:
change
- refactoring change for filtering matches which intersect with them, cannot benull
collector
-SimpleSearchResultCollector
text search collector, cannot benull
- Returns:
- all found
Match
in full text search except matches intersect withchange
, nevernull
-
-