Class BslFullTextSearchRefactoringSupplier
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslFullTextSearchSupplier
-
- com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslFullTextSearchRefactoringSupplier
-
- All Implemented Interfaces:
IFullTextSearchSupplier
,FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
public class BslFullTextSearchRefactoringSupplier extends BslFullTextSearchSupplier implements FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
for Bsl language. Provides logic for full text search refactoring in Bsl module and DCS files
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslFullTextSearchSupplier
BSL_EXT, resourceSetProvider
-
-
Constructor Summary
Constructors Constructor Description BslFullTextSearchRefactoringSupplier(IProjectFileSystemSupportProvider fileSystemSupportProvider, org.eclipse.handly.ui.IInputElementProvider inputElementProvider, BslGrammarAccess bslGrammar, org.eclipse.xtext.ui.refactoring.impl.RefactoringResourceSetProvider resourceSetProvider, DynamicFeatureAccessComputer dynamicFeatureAccessComputer, IModelEditingSupport modelEditingSupport, IV8ProjectManager projectManager, org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
createChangeName(org.eclipse.core.resources.IFile file)
CreatesChange
name byIFile
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)
Collection<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 class com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslFullTextSearchSupplier
filterMatcherForCommentAndStringLiteral, filterMatcherForSemanticObject, filterMatchesForFormalParam, filterMatchesFromDcs, filterSearchResult, getIFile, getModule, getSearchStrings, isObjectTextAttribute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.search.core.refactoring.FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
getGroupingBmObject
-
Methods inherited from interface com._1c.g5.v8.dt.search.core.IFullTextSearchSupplier
filterSearchResult, getSearchStrings, isObjectTextAttribute
-
-
-
-
Constructor Detail
-
BslFullTextSearchRefactoringSupplier
@Inject public BslFullTextSearchRefactoringSupplier(IProjectFileSystemSupportProvider fileSystemSupportProvider, org.eclipse.handly.ui.IInputElementProvider inputElementProvider, BslGrammarAccess bslGrammar, org.eclipse.xtext.ui.refactoring.impl.RefactoringResourceSetProvider resourceSetProvider, DynamicFeatureAccessComputer dynamicFeatureAccessComputer, IModelEditingSupport modelEditingSupport, IV8ProjectManager projectManager, org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider)
Constructor- Parameters:
fileSystemSupportProvider
- actualIProjectFileSystemSupportProvider
, can't benull
inputElementProvider
- specialIInputElementProvider
, can't benull
bslGrammar
- actualBslGrammarAccess
, can't benull
resourceSetProvider
- specialIResourceSetProvider
for getting actial content of the bsl module, can't benull
dynamicFeatureAccessComputer
- actualDynamicFeatureAccessComputer
, can't benull
modelEditingSupport
- actualIModelEditingSupport
, can't benull
projectManager
- actualIV8ProjectManager
, can't benull
scopeProvider
- actualIGlobalScopeProvider
for getting actualProperty
scope for filtering matches corresponding to theDynamicFeatureAccess
in Bsl module, cannot benull
-
-
Method Detail
-
createChanges
public 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)
Description copied from interface:FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
- Specified by:
createChanges
in interfaceFullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
- 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
-
getMatches
public Collection<IDtMatchProvider> getMatches(org.eclipse.ltk.core.refactoring.Change change, RefactoringFullTextSearchResultCollector collector)
Description copied from interface:FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
Gets all foundDtMatch
in full text search except matches intersect withchange
- Specified by:
getMatches
in interfaceFullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
- 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
-
createChanges
public Collection<org.eclipse.ltk.core.refactoring.Change> createChanges(IBmObject bmObject, org.eclipse.ltk.core.refactoring.Change normalRefactoringChange, Collection<IDtMatchProvider> matches, String oldName, String newName)
Description copied from interface:FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
CreatesChange
s for concreteIBmObject
if there is no IFile for it and collection ofDtMatch
corresponding to the this object- Specified by:
createChanges
in interfaceFullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
- 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
-
getSearchType
public SearchType getSearchType()
Description copied from interface:FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
The target search type for the FTS search- Specified by:
getSearchType
in interfaceFullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
- Returns:
- The index type. May not be
null
a
-
createChangeName
protected String createChangeName(org.eclipse.core.resources.IFile file)
CreatesChange
name byIFile
- Parameters:
file
- file with found changes, can't benull
- Returns:
Change
name byIFile
, nevernull
-
-