Package com.iizigo.handler
Class PasteLink
The Paste-Link property handler.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from class com.iizigo.handler.CommonHandler
selectionEnabler
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionstatic CommandContributionItem
create
(IServiceLocator serviceLocator, ImageRegistry ir) Creates the Command Contribution item.protected void
Performs the operation.static PasteLink
Gets the instance of the handler.static void
run
(ISelection selection, IPropUndoRedo undoRedo) Runs the handler.protected void
Sets the enabled state for the selection.Methods inherited from class com.iizigo.handler.CommonHandler
execute, getCurrentSelection, getShell, getUndoContext, getUndoRedo, getUpdateStatesRunnable, isHandled, setEnabled
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
Methods inherited from interface org.eclipse.core.commands.IHandler
getHandlerLabel
Field Details
ID
The ID, same as class name.
Constructor Details
PasteLink
public PasteLink()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:
setEnabled
in classCommonHandler
doExecute
protected void doExecute()Performs the operation.- Specified by:
doExecute
in classCommonHandler
run
Runs the handler.