Class BslCustomRenameElementHandler

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2, org.eclipse.xtext.ui.refactoring.ui.IRenameElementHandler

    public class BslCustomRenameElementHandler
    extends CustomRenameElementHandler
    Adapted version of CustomRenameElementHandler for Bsl Module
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler

        globalServiceProvider, LOG, preferences, renameContextFactory, renameRefactoringController, syncUtil
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object execute​(org.eclipse.core.commands.ExecutionEvent event)  
      protected boolean isRefactoringEnabled​(org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext, org.eclipse.xtext.resource.XtextResource resource)  
      • Methods inherited from class org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler

        createRenameElementContext, startRenameElement
      • Methods inherited from class org.eclipse.core.commands.AbstractHandler

        addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from interface org.eclipse.core.commands.IHandler

        addHandlerListener, dispose, isEnabled, isHandled, removeHandlerListener
      • Methods inherited from interface org.eclipse.core.commands.IHandler2

        setEnabled
    • Constructor Detail

      • BslCustomRenameElementHandler

        public BslCustomRenameElementHandler()
    • Method Detail

      • execute

        public Object execute​(org.eclipse.core.commands.ExecutionEvent event)
                       throws org.eclipse.core.commands.ExecutionException
        Specified by:
        execute in interface org.eclipse.core.commands.IHandler
        Overrides:
        execute in class org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler
        Throws:
        org.eclipse.core.commands.ExecutionException
      • isRefactoringEnabled

        protected boolean isRefactoringEnabled​(org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext renameElementContext,
                                               org.eclipse.xtext.resource.XtextResource resource)
        Overrides:
        isRefactoringEnabled in class CustomRenameElementHandler