Class RightTemplateTextSearchRefactoringSupplier
java.lang.Object
com._1c.g5.v8.dt.ql.refactoring.AbstractTextSearchRefactoringSupplierForQlSemanticLanguage
com._1c.g5.v8.dt.right.templates.ui.refactoring.RightTemplateTextSearchRefactoringSupplier
- All Implemented Interfaces:
ITextSearchSupplier,ITextSearchRefactoringSupplier
public class RightTemplateTextSearchRefactoringSupplier
extends AbstractTextSearchRefactoringSupplierForQlSemanticLanguage
Special
AbstractTextSearchRefactoringSupplierForQlSemanticLanguage for
refactoring ql restriction template for Role.-
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) filterSearchResult(org.eclipse.emf.ecore.EObject context, String oldName, Collection<Match> results) Filters search resultsprotected StringgetQueryContent(IBmObject object) Gets Ql(QlDcs) query for filtering full text search resultsMethods inherited from class com._1c.g5.v8.dt.ql.refactoring.AbstractTextSearchRefactoringSupplierForQlSemanticLanguage
createChanges, filterSearchResultForNonTopObject, filterSearchResultForTopObject, getMatches, getSearchStrings, isSingleWordMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.search.core.refactoring.ITextSearchRefactoringSupplier
getGroupingObject
-
Constructor Details
-
RightTemplateTextSearchRefactoringSupplier
public RightTemplateTextSearchRefactoringSupplier()
-
-
Method Details
-
filterSearchResult
public Collection<Match> filterSearchResult(org.eclipse.emf.ecore.EObject context, String oldName, Collection<Match> results) Description copied from interface:ITextSearchSupplierFilters search results- 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(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- 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
-
getQueryContent
Description copied from class:AbstractTextSearchRefactoringSupplierForQlSemanticLanguageGets Ql(QlDcs) query for filtering full text search results- Specified by:
getQueryContentin classAbstractTextSearchRefactoringSupplierForQlSemanticLanguage- Parameters:
object- content object for getting query, cannot benull- Returns:
- Ql(QlDcs) query for filtering full text search results, never
null
-