Class BslTextSearchRefactoringSupplier

java.lang.Object
com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslTextSearchSupplier
com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslTextSearchRefactoringSupplier
All Implemented Interfaces:
ITextSearchSupplier, ITextSearchRefactoringSupplier

public class BslTextSearchRefactoringSupplier extends BslTextSearchSupplier implements ITextSearchRefactoringSupplier
ITextSearchRefactoringSupplier for Bsl language. Provides logic for full text search refactoring in Bsl module and DCS files
  • Constructor Details

  • Method Details

    • 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
      Creates Changes for concrete IFile in project and collection of Match corresponding to the file
      Specified by:
      createChanges in interface ITextSearchRefactoringSupplier
      Parameters:
      file - concrete IFile in project 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 IFile in project and collection of Match corresponding to the file
    • getMatches

      public Collection<Match> getMatches(org.eclipse.ltk.core.refactoring.Change change, SimpleSearchResultCollector collector)
      Description copied from interface: ITextSearchRefactoringSupplier
      Gets all found Match in full text search except matches intersect with change
      Specified by:
      getMatches in interface ITextSearchRefactoringSupplier
      Parameters:
      change - refactoring change for filtering matches which intersect with them, cannot be null
      collector - SimpleSearchResultCollector text search collector, cannot be null
      Returns:
      all found Match in full text search except matches intersect with change, 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
      Specified by:
      createChanges in interface ITextSearchRefactoringSupplier
      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
    • createChangeName

      protected String createChangeName(org.eclipse.core.resources.IFile file)
      Creates Change name by IFile
      Parameters:
      file - file with found changes, cannot be null
      Returns:
      Change name by IFile, never null