Class BslConfigurationObjectRenameRefactoringController


  • public class BslConfigurationObjectRenameRefactoringController
    extends Object
    Special controller for refactoring configuration objects in Bsl module
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences preferences  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.xtext.ui.refactoring.ui.IRenameSupport createRenameSupport​(org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext context, String name)
      Creates IRenameSupport
      protected List<org.eclipse.ltk.core.refactoring.Change> getRefactoringChanges​(String newName, org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext)
      Collect changes to perform rename refactoring
      protected void startDirectRefactoring​(String newName, org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext)
      Starts direct refactoring
      List<org.eclipse.ltk.core.refactoring.Change> startRefactoring​(String newName, org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext)
      Starts refactoring
      List<org.eclipse.ltk.core.refactoring.Change> startRefactoring​(String newName, org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext, org.eclipse.xtext.ui.refactoring.ui.RefactoringType refactoringType)
      Starts refactoring.
      protected void startRefactoringWithDialog​(String newName, org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext, boolean previewOnly)
      Starts with dialog refactoring
    • Field Detail

      • preferences

        @Inject
        protected org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences preferences
    • Constructor Detail

      • BslConfigurationObjectRenameRefactoringController

        public BslConfigurationObjectRenameRefactoringController()
    • Method Detail

      • startRefactoring

        public List<org.eclipse.ltk.core.refactoring.Change> startRefactoring​(String newName,
                                                                              org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext)
        Starts refactoring
        Parameters:
        renameElementContext - actual IRenameElementContext, can't be null
      • startRefactoring

        public List<org.eclipse.ltk.core.refactoring.Change> startRefactoring​(String newName,
                                                                              org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext,
                                                                              org.eclipse.xtext.ui.refactoring.ui.RefactoringType refactoringType)
        Starts refactoring.
        Parameters:
        refactoringType - type of the refactoring
      • startDirectRefactoring

        protected void startDirectRefactoring​(String newName,
                                              org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext)
                                       throws InterruptedException
        Starts direct refactoring
        Throws:
        InterruptedException - thrown be IRenameSupport.startDirectRefactoring()
      • startRefactoringWithDialog

        protected void startRefactoringWithDialog​(String newName,
                                                  org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext,
                                                  boolean previewOnly)
                                           throws InterruptedException
        Starts with dialog refactoring
        Parameters:
        previewOnly - true if only preview dialog should be shown in refactoring, false otherwise
        Throws:
        InterruptedException - thrown be IRenameSupport.startDirectRefactoring()
      • getRefactoringChanges

        protected List<org.eclipse.ltk.core.refactoring.Change> getRefactoringChanges​(String newName,
                                                                                      org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext)
                                                                               throws InterruptedException
        Collect changes to perform rename refactoring
        Parameters:
        newName - the new name to set
        renameElementContext - rename context
        Returns:
        list of changes to perform refactoring
        Throws:
        InterruptedException
      • createRenameSupport

        protected org.eclipse.xtext.ui.refactoring.ui.IRenameSupport createRenameSupport​(org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext context,
                                                                                         String name)
        Creates IRenameSupport
        Parameters:
        context - actual IRenameElementContext, can't be null
        name - new name of renaming object, can't be null
        Returns:
        created IRenameSupport, can be null if there is no IRenameSupport for this IRenameElementContext