Class BslConfigurationObjectRenameContributor

    • Constructor Detail

      • BslConfigurationObjectRenameContributor

        public BslConfigurationObjectRenameContributor()
    • Method Detail

      • createNativePreChanges

        public Collection<org.eclipse.ltk.core.refactoring.Change> createNativePreChanges​(org.eclipse.emf.ecore.EObject object,
                                                                                          String newName,
                                                                                          RefactoringSettings refactoringSettings,
                                                                                          RefactoringStatus status)
        Description copied from interface: IRenameRefactoringContributor
        Creates LTK changes that is executed before the EDT refactoring operations are performed.

        If some conditions are not satisfied the refactoring status should be filled with the appropriate error or warning message.

        Specified by:
        createNativePreChanges in interface IRenameRefactoringContributor
        Parameters:
        object - the object being renamed, cannot be null.
        newName - the new name of the object, cannot be null.
        refactoringSettings - the refactoring settings, cannot be null.
        status - the refactoring status, cannot be null.
        Returns:
        a collection of LTK changes or null.
      • createNativePostChanges

        public Collection<org.eclipse.ltk.core.refactoring.Change> createNativePostChanges​(org.eclipse.emf.ecore.EObject object,
                                                                                           String newName,
                                                                                           RefactoringSettings refactoringSettings,
                                                                                           RefactoringStatus status)
        Description copied from interface: IRenameRefactoringContributor
        Creates LTK changes that is executed after the EDT refactoring operations are performed.

        If some conditions are not satisfied the refactoring status should be filled with the appropriate error or warning message.

        Specified by:
        createNativePostChanges in interface IRenameRefactoringContributor
        Parameters:
        object - the object being renamed, cannot be null.
        newName - the new name of the object, cannot be null.
        refactoringSettings - the refactoring settings, cannot be null.
        status - the refactoring status, cannot be null.
        Returns:
        a collection of LTK changes or null.
      • getRenameElementContext

        protected org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext getRenameElementContext​(IBmTransaction transaction,
                                                                                                    IBmObject object)
        Gets actual IRenameElementContext for renaming object
        Parameters:
        transaction - actual IBmTransaction, can't be null
        object - renaming IBmObject, can't be null
        Returns:
        actual IRenameElementContext for renaming object, never null
      • startRenameElement

        protected List<org.eclipse.ltk.core.refactoring.Change> startRenameElement​(org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext,
                                                                                   String newName)
                                                                            throws InterruptedException
        Starts rename rtefactoring
        Parameters:
        renameElementContext - actual IRenameElementContext, can't be null
        newName - new name of the object, can't be null
        Throws:
        InterruptedException - thrown by BslConfigurationObjectRenameRefactoringController#startRefactoring(org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext)
      • isSupport

        protected boolean isSupport​(org.eclipse.emf.ecore.EObject object)
        Returns true if the object is supported by the contributor.
        Parameters:
        object - the object being renamed, cannot be null.
        Returns:
        true if the object is supported by the contributor, false - otherwise.