Package com.iizigo.handler
Class PasteAfter
- java.lang.Object
- org.eclipse.core.commands.common.EventManager
- org.eclipse.core.commands.AbstractHandler
- com.iizigo.handler.CommonHandler
- com.iizigo.handler.PasteAfter
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class PasteAfter extends CommonHandler
The Paste After property handler.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID
The ID, same as class name.Fields inherited from class com.iizigo.handler.CommonHandler
selectionEnabler
Constructor Summary
Constructors Constructor Description PasteAfter()
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 PasteAfter
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 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
Method Detail
getInstance
public static PasteAfter 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.
setEnabled
protected void setEnabled(SelectionEnabler se)
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
public static void run(org.eclipse.jface.viewers.ISelection selection, IPropUndoRedo undoRedo)
Runs the handler.