Class CharacteristicDescriptionTextSearchRefactoringSupplier
java.lang.Object
com._1c.g5.v8.dt.md.refactoring.core.CharacteristicDescriptionTextSearchRefactoringSupplier
- All Implemented Interfaces:
ITextSearchSupplier,ITextSearchRefactoringSupplier
public class CharacteristicDescriptionTextSearchRefactoringSupplier
extends Object
implements ITextSearchRefactoringSupplier
Special
ITextSearchRefactoringSupplier for CharacteristicsDescription data path field-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<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) filterSearchResult(org.eclipse.emf.ecore.EObject context, String oldName, Collection<Match> results) Filters search resultsgetGroupingObject(IBmObject matchObject) Gets object for grouping search result for refactoringgetMatches(org.eclipse.ltk.core.refactoring.Change change, SimpleSearchResultCollector collector) Gets all foundMatchin full text search except matches intersect withchangegetSearchStrings(org.eclipse.emf.ecore.EObject context, String oldName) Generates strings for full text search by renaming element and its original name
-
Constructor Details
-
CharacteristicDescriptionTextSearchRefactoringSupplier
public CharacteristicDescriptionTextSearchRefactoringSupplier()
-
-
Method Details
-
getSearchStrings
Description copied from interface:ITextSearchSupplierGenerates strings for full text search by renaming element and its original name- Specified by:
getSearchStringsin interfaceITextSearchSupplier- Parameters:
context- renaming element, cannot benulloldName- original name, cannot benull- Returns:
- strings for full text search by renaming element and its original name, never
null
-
filterSearchResult
public Collection<Match> filterSearchResult(org.eclipse.emf.ecore.EObject context, String oldName, Collection<Match> results) Description copied from interface:ITextSearchSupplierFilters search results- Specified by:
filterSearchResultin interfaceITextSearchSupplier- Parameters:
context- renaming element, cannot benulloldName- original name, cannot benullresults- full text search results for filtering, cannot benull- Returns:
- filtered search result, never
null
-
createChanges
public 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) Description copied from interface:ITextSearchRefactoringSupplier- Specified by:
createChangesin interfaceITextSearchRefactoringSupplier- Parameters:
file- concreteIFilein project containing search results, cannot benullnormalRefactoringChange- 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 benullmatches- collection ofMatchcorresponding to the file, cannot benulloldName- original name, cannot benullnewName- new name of the renaming element, cannot benull- Returns:
- created
Changes for concreteIFilein project and collection ofMatchcorresponding to the file
-
createChanges
public Collection<org.eclipse.ltk.core.refactoring.Change> createChanges(IBmObject bmObject, org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, Collection<TextSearchModelMatch> matches, String oldName, String newName) Description copied from interface:ITextSearchRefactoringSupplierCreatesChanges for concreteIBmObjectif there is no IFile for it and collection ofMatchcorresponding to the this object- Specified by:
createChangesin interfaceITextSearchRefactoringSupplier- Parameters:
bmObject- concreteIBmObjectcontaining search results, cannot benullnormalRefactoringChange- 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 benullmatches- collection ofMatchcorresponding to the file, cannot benulloldName- original name, cannot benullnewName- new name of the renaming element, cannot benull- Returns:
- created
Changes for concreteIBmObjectin project and collection ofMatchcorresponding to the object
-
getMatches
public Collection<Match> getMatches(org.eclipse.ltk.core.refactoring.Change change, SimpleSearchResultCollector collector) Description copied from interface:ITextSearchRefactoringSupplierGets all foundMatchin full text search except matches intersect withchange- Specified by:
getMatchesin interfaceITextSearchRefactoringSupplier- Parameters:
change- refactoring change for filtering matches which intersect with them, cannot benullcollector-SimpleSearchResultCollectortext search collector, cannot benull- Returns:
- all found
Matchin full text search except matches intersect withchange, nevernull
-
getGroupingObject
Description copied from interface:ITextSearchRefactoringSupplierGets object for grouping search result for refactoring- Specified by:
getGroupingObjectin interfaceITextSearchRefactoringSupplier- Parameters:
matchObject- actual object for refactoring, cannot benull- Returns:
- grouping
IBmObject, nevernull
-