Class Rename

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

    public class Rename
    extends CommonHandler
    The Rename property handler.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ID
      The ID, same as class name.
    • Constructor Summary

      Constructors 
      Constructor Description
      Rename()
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.eclipse.ui.menus.CommandContributionItem create​(org.eclipse.ui.services.IServiceLocator serviceLocator, ImageRegistry ir)
      Creates the Command Contribution item.
      protected void doExecute()
      Performs the operation.
      static Rename getInstance()
      Gets the instance of the handler.
      static void run​(org.eclipse.jface.viewers.ISelection selection, IPropUndoRedo undoRedo)
      Runs the handler.
      protected void setEnabled​(SelectionEnabler se)
      Sets the enabled state for the selection.
      • Methods inherited from class org.eclipse.core.commands.AbstractHandler

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

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ID

        public static final java.lang.String ID
        The ID, same as class name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Rename

        public Rename()
        Constructor.
    • Method Detail

      • getInstance

        public static Rename getInstance()
        Gets the instance of the handler.
      • create

        public static org.eclipse.ui.menus.CommandContributionItem create​(org.eclipse.ui.services.IServiceLocator serviceLocator,
                                                                          ImageRegistry ir)
        Creates the Command Contribution item.
      • doExecute

        protected void doExecute()
        Performs the operation.
        Specified by:
        doExecute in class CommonHandler
      • run

        public static void run​(org.eclipse.jface.viewers.ISelection selection,
                               IPropUndoRedo undoRedo)
        Runs the handler.