Package com.iizigo.handler
Class SelectAll
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
com.iizigo.handler.SelectAll
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class SelectAll extends org.eclipse.core.commands.AbstractHandler
The Select All handler.
- Author:
- Christopher Mindus
Field Summary
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.ui.menus.CommandContributionItem
create
(org.eclipse.ui.services.IServiceLocator serviceLocator, ImageRegistry ir) Creates the Command Contribution item.execute
(org.eclipse.core.commands.ExecutionEvent event) Performs the operation.static SelectAll
Gets the instance of the handler.void
setEnabled
(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 org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled
Methods 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
SelectAll
public SelectAll()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
Called by the framework to allow the handler to update its enabled state by extracting the same information available at execution time.- Specified by:
setEnabled
in interfaceorg.eclipse.core.commands.IHandler2
- Overrides:
setEnabled
in classorg.eclipse.core.commands.AbstractHandler
- Parameters:
evaluationContext
- The application context. May benull
.
execute
public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException Performs the operation.- Throws:
org.eclipse.core.commands.ExecutionException