Package com.iizigo.handler
Class Delete
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
com.iizigo.handler.CommonHandler
com.iizigo.handler.Delete
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler,org.eclipse.core.commands.IHandler2
The Delete property handler.
- Author:
- Christopher Mindus
Field Summary
FieldsFields inherited from class com.iizigo.handler.CommonHandler
selectionEnablerConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.ui.menus.CommandContributionItemcreate(org.eclipse.ui.services.IServiceLocator serviceLocator, ImageRegistry ir) Creates the Command Contribution item.protected voidPerforms the operation.static DeleteGets the instance of the handler.static voidrun(org.eclipse.jface.viewers.ISelection selection, IPropUndoRedo undoRedo, Runnable callback) Runs the handler.protected voidSets the enabled state for the selection.Methods inherited from class com.iizigo.handler.CommonHandler
execute, getCurrentSelection, getShell, getUndoContext, getUndoRedo, getUpdateStatesRunnable, isHandled, setEnabledMethods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, removeHandlerListener, setBaseEnabledMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
Field Details
ID
The ID, same as class name.
Constructor Details
Delete
public Delete()Constructor.
Method Details
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
Sets the enabled state for the selection.- Specified by:
setEnabledin classCommonHandler
doExecute
protected void doExecute()Performs the operation.- Specified by:
doExecutein classCommonHandler
run
public static void run(org.eclipse.jface.viewers.ISelection selection, IPropUndoRedo undoRedo, Runnable callback) Runs the handler.