Interface FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
-
- All Superinterfaces:
IFullTextSearchSupplier
- All Known Implementing Classes:
AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage
,BasicHtmlFullTextSearchRefactoringSupplier
,BslFullTextSearchRefactoringSupplier
,CharacteristicDescriptionFullTextSearchRefactoringSupplier
,DcsQueryFullTextSearchRefactoringSupplier
,HtmlDocumentMdReferenceFullTextSearchRefactoringSupplier
,RightQlFullTextSearchRefactoringSupplier
,RightTemplateFullTextSearchRefactoringSupplier
- Enclosing class:
- FullTextSearchRefactoringParticipant
public static interface FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier extends IFullTextSearchSupplier
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<IDtMatchProvider> 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<IDtMatchProvider> matches, String oldName, String newName)
default IBmObject
getGroupingBmObject(DtMatch searchResult)
Gets object for grouping search result for refactoringCollection<IDtMatchProvider>
getMatches(org.eclipse.ltk.core.refactoring.Change change, RefactoringFullTextSearchResultCollector collector)
Gets all foundDtMatch
in full text search except matches intersect withchange
SearchType
getSearchType()
The target search type for the FTS search-
Methods inherited from interface com._1c.g5.v8.dt.search.core.IFullTextSearchSupplier
filterSearchResult, getSearchStrings, isObjectTextAttribute
-
-
-
-
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<IDtMatchProvider> 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 ofDtMatch
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 ofDtMatch
corresponding to the file
-
createChanges
Collection<org.eclipse.ltk.core.refactoring.Change> createChanges(IBmObject bmObject, org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, Collection<IDtMatchProvider> matches, String oldName, String newName)
CreatesChange
s for concreteIBmObject
if there is no IFile for it and collection ofDtMatch
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 ofDtMatch
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 ofDtMatch
corresponding to the object
-
getMatches
Collection<IDtMatchProvider> getMatches(org.eclipse.ltk.core.refactoring.Change change, RefactoringFullTextSearchResultCollector collector)
Gets all foundDtMatch
in full text search except matches intersect withchange
- Parameters:
change
- refactoring change for filtering matches which intersect with them, cannot benull
collector
-RefactoringFullTextSearchResultCollector
full text search collector, cannot benull
- Returns:
- all found
DtMatch
in full text search except matches intersect withchange
, nevernull
-
getSearchType
SearchType getSearchType()
The target search type for the FTS search- Returns:
- The index type. May not be
null
a
-
-