Class SelectAll
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
com.iizigo.handler.SelectAll
Field Summary
FieldsConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionstatic CommandContributionItemcreate(IServiceLocator serviceLocator, ImageRegistry ir) Creates the Command Contribution item.execute(ExecutionEvent event) Performs the operation.static SelectAllGets the instance of the handler.voidsetEnabled(Object evaluationContext) Called by the framework to allow the handler to update its enabled state by extracting the same information available at execution time.Methods inherited from class AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, 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
The ID, same as class name.
Constructor Details
SelectAll
public SelectAll()Constructor.
Method Details
getInstance
Gets the instance of the handler.create
Creates the Command Contribution item.setEnabled
Called by the framework to allow the handler to update its enabled state by extracting the same information available at execution time.- Specified by:
setEnabledin interfaceIHandler2- Overrides:
setEnabledin classAbstractHandler- Parameters:
evaluationContext- The application context. May benull.
execute
Performs the operation.- Throws:
ExecutionException