Class Rename
Field Summary
FieldsFields inherited from class CommonHandler
selectionEnablerConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionstatic CommandContributionItemcreate(IServiceLocator serviceLocator, ImageRegistry ir) Creates the Command Contribution item.protected voidPerforms the operation.static RenameGets the instance of the handler.static voidrun(ISelection selection, IPropUndoRedo undoRedo) Runs the handler.protected voidSets the enabled state for the selection.Methods inherited from class CommonHandler
execute, getCurrentSelection, getShell, getUndoContext, getUndoRedo, getUpdateStatesRunnable, isHandled, setEnabledMethods inherited from class AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, removeHandlerListener, setBaseEnabledMethods inherited from class EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IHandler
getHandlerLabel
Field Details
ID
Constructor Details
Rename
public Rename()Constructor.
Method Details
getInstance
Gets the instance of the handler.create
Creates the Command Contribution item.setEnabled
Sets the enabled state for the selection.- Specified by:
setEnabledin classCommonHandler
doExecute
run
Runs the handler.