Class DcsQueryFullTextSearchRefactoringSupplier
- java.lang.Object
-
- com._1c.g5.v8.dt.ql.refactoring.AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage
-
- com._1c.g5.v8.dt.dcs.ui.refactoring.DcsQueryFullTextSearchRefactoringSupplier
-
- All Implemented Interfaces:
IFullTextSearchSupplier
,FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
public class DcsQueryFullTextSearchRefactoringSupplier extends AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage
SpecialAbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage
for refactoring dcs query in Data composition schema. Also create changes for changing name of fields in Data composition schema
-
-
Constructor Summary
Constructors Constructor Description DcsQueryFullTextSearchRefactoringSupplier()
-
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<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>
filterSearchResult(org.eclipse.emf.ecore.EObject context, String oldName, Collection<IDtMatchProvider> results)
Filters search resultsCollection<IDtMatchProvider>
getMatches(org.eclipse.ltk.core.refactoring.Change change, RefactoringFullTextSearchResultCollector collector)
Gets all foundDtMatch
in full text search except matches intersect withchange
protected String
getQueryContent(IBmObject object)
Gets Ql(QlDcs) query for filtering full text search results-
Methods inherited from class com._1c.g5.v8.dt.ql.refactoring.AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage
filterSearchResultForNonTopObject, filterSearchResultForTopObject, getSearchStrings, getSearchType, isObjectTextAttribute, isSingleWord
-
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
-
-
-
-
Method Detail
-
filterSearchResult
public Collection<IDtMatchProvider> filterSearchResult(org.eclipse.emf.ecore.EObject context, String oldName, Collection<IDtMatchProvider> results)
Description copied from interface:IFullTextSearchSupplier
Filters search results- 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<IDtMatchProvider> matches, String oldName, String newName)
Description copied from interface:FullTextSearchRefactoringParticipant.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
- 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- 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
-
getQueryContent
protected String getQueryContent(IBmObject object)
Description copied from class:AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage
Gets Ql(QlDcs) query for filtering full text search results- Specified by:
getQueryContent
in classAbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage
- Parameters:
object
- content object for getting query, cannot benull
- Returns:
- Ql(QlDcs) query for filtering full text search results, never
null
-
-