public class GenericCommandActionDelegate
extends java.lang.Object
implements org.eclipse.ui.IWorkbenchWindowActionDelegate, org.eclipse.ui.IViewActionDelegate, org.eclipse.ui.IEditorActionDelegate, org.eclipse.ui.IObjectActionDelegate, org.eclipse.core.runtime.IExecutableExtension
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
commandId |
private org.eclipse.ui.handlers.IHandlerService |
handlerService |
private org.eclipse.core.commands.ParameterizedCommand |
parameterizedCommand |
private java.util.Map<?,?> |
parameterMap |
static java.lang.String |
PARM_COMMAND_ID
The commandId parameter needed when using the <class/> form for
this IActionDelegate.
|
| Constructor and Description |
|---|
GenericCommandActionDelegate() |
| Modifier and Type | Method and Description |
|---|---|
private void |
createCommand(org.eclipse.ui.commands.ICommandService commandService)
Build a command from the executable extension information.
|
void |
dispose() |
void |
init(org.eclipse.ui.IViewPart view) |
void |
init(org.eclipse.ui.IWorkbenchWindow window) |
void |
run(org.eclipse.jface.action.IAction action) |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection) |
void |
setActiveEditor(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IEditorPart targetEditor) |
void |
setActivePart(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IWorkbenchPart targetPart) |
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data) |
public static final java.lang.String PARM_COMMAND_ID
private java.lang.String commandId
private java.util.Map<?,?> parameterMap
private org.eclipse.core.commands.ParameterizedCommand parameterizedCommand
private org.eclipse.ui.handlers.IHandlerService handlerService
public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegatepublic void run(org.eclipse.jface.action.IAction action)
run in interface org.eclipse.ui.IActionDelegatepublic void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.IActionDelegatepublic void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
throws org.eclipse.core.runtime.CoreException
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtensionorg.eclipse.core.runtime.CoreExceptionprivate void createCommand(org.eclipse.ui.commands.ICommandService commandService)
commandService - to get the Command objectpublic void init(org.eclipse.ui.IWorkbenchWindow window)
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegatepublic void init(org.eclipse.ui.IViewPart view)
init in interface org.eclipse.ui.IViewActionDelegatepublic void setActiveEditor(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IEditorPart targetEditor)
setActiveEditor in interface org.eclipse.ui.IEditorActionDelegatepublic void setActivePart(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IWorkbenchPart targetPart)
setActivePart in interface org.eclipse.ui.IObjectActionDelegate