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
SpecialITextSearchRefactoringSupplier
forCharacteristicsDescription
data path field
-
-
Constructor Summary
Constructors Constructor Description CharacteristicDescriptionTextSearchRefactoringSupplier()
-
Method Summary
All Methods Instance Methods Concrete 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)
Collection<Match>
filterSearchResult(org.eclipse.emf.ecore.EObject context, String oldName, Collection<Match> results)
Filters search resultsIBmObject
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
Collection<String>
getSearchStrings(org.eclipse.emf.ecore.EObject context, String oldName)
Generates strings for full text search by renaming element and its original name
-
-
-
Method Detail
-
getSearchStrings
public Collection<String> getSearchStrings(org.eclipse.emf.ecore.EObject context, String oldName)
Description copied from interface:ITextSearchSupplier
Generates strings for full text search by renaming element and its original name- Specified by:
getSearchStrings
in interfaceITextSearchSupplier
- Parameters:
context
- renaming element, cannot benull
oldName
- 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:ITextSearchSupplier
Filters search results- Specified by:
filterSearchResult
in interfaceITextSearchSupplier
- Parameters:
context
- renaming element, cannot benull
oldName
- original name, cannot benull
results
- 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:
createChanges
in interfaceITextSearchRefactoringSupplier
- 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
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:ITextSearchRefactoringSupplier
CreatesChange
s for concreteIBmObject
if there is no IFile for it and collection ofMatch
corresponding to the this object- Specified by:
createChanges
in interfaceITextSearchRefactoringSupplier
- 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
public Collection<Match> getMatches(org.eclipse.ltk.core.refactoring.Change change, SimpleSearchResultCollector collector)
Description copied from interface:ITextSearchRefactoringSupplier
Gets all foundMatch
in full text search except matches intersect withchange
- Specified by:
getMatches
in interfaceITextSearchRefactoringSupplier
- 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
-
getGroupingObject
public IBmObject getGroupingObject(IBmObject matchObject)
Description copied from interface:ITextSearchRefactoringSupplier
Gets object for grouping search result for refactoring- Specified by:
getGroupingObject
in interfaceITextSearchRefactoringSupplier
- Parameters:
matchObject
- actual object for refactoring, cannot benull
- Returns:
- grouping
IBmObject
, nevernull
-
-