Class RightQlTextSearchRefactoringSupplier

java.lang.Object
com._1c.g5.v8.dt.ql.refactoring.AbstractTextSearchRefactoringSupplierForQlSemanticLanguage
com._1c.g5.v8.dt.right.ql.ui.refactoring.RightQlTextSearchRefactoringSupplier
All Implemented Interfaces:
ITextSearchSupplier, ITextSearchRefactoringSupplier

public class RightQlTextSearchRefactoringSupplier extends AbstractTextSearchRefactoringSupplierForQlSemanticLanguage
Special AbstractTextSearchRefactoringSupplierForQlSemanticLanguage for refactoring ql restriction for Right in Rls.
  • Constructor Details

    • RightQlTextSearchRefactoringSupplier

      public RightQlTextSearchRefactoringSupplier()
  • Method Details

    • filterSearchResult

      public Collection<Match> filterSearchResult(org.eclipse.emf.ecore.EObject context, String oldName, Collection<Match> results)
      Description copied from interface: ITextSearchSupplier
      Filters search results
      Parameters:
      context - renaming element, cannot be null
      oldName - original name, cannot be null
      results - full text search results for filtering, cannot be null
      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: ITextSearchRefactoringSupplier
      Creates Changes for concrete IBmObject if there is no IFile for it and collection of Match corresponding to the this object
      Parameters:
      bmObject - concrete IBmObject containing search results, cannot be null
      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 be null
      matches - collection of Match corresponding to the file, cannot be null
      oldName - original name, cannot be null
      newName - new name of the renaming element, cannot be null
      Returns:
      created Changes for concrete IBmObject in project and collection of Match corresponding to the object
    • getQueryContent

      protected String getQueryContent(IBmObject object)
      Gets Ql(QlDcs) query for filtering full text search results
      Specified by:
      getQueryContent in class AbstractTextSearchRefactoringSupplierForQlSemanticLanguage
      Parameters:
      object - content object for getting query, cannot be null
      Returns:
      Ql(QlDcs) query for filtering full text search results, never null