| org.eclipse.ui.internal.actions.CommandAction
All known Subclasses: org.eclipse.ui.actions.ContributedAction,
CommandAction | public class CommandAction extends Action (Code) | | Instantiate an action that will execute the command.
This is a legacy bridge class, and should not be used outside of the
framework. Please use menu contributions to display a command in a menu or
toolbar.
Note: Clients my instantiate, but they must not subclass.
since: 3.3 |
CommandAction | protected CommandAction()(Code) | | |
CommandAction | public CommandAction(IServiceLocator serviceLocator, String commandIdIn)(Code) | | Creates the action backed by a command. For commands that don't take
parameters.
Parameters: serviceLocator - The service locator that is closest in lifecycle to thisaction. Parameters: commandIdIn - the command id. Must not be null . |
CommandAction | public CommandAction(IServiceLocator serviceLocator, String commandIdIn, Map parameterMap)(Code) | | Creates the action backed by a parameterized command. The parameterMap
must contain only all required parameters, and may contain the optional
parameters.
Parameters: serviceLocator - The service locator that is closest in lifecycle to thisaction. Parameters: commandIdIn - the command id. Must not be null . Parameters: parameterMap - the parameter map. May be null . |
dispose | public void dispose()(Code) | | |
getActionDefinitionId | public String getActionDefinitionId()(Code) | | |
getCommandListener | protected ICommandListener getCommandListener()(Code) | | |
getParameterizedCommand | protected ParameterizedCommand getParameterizedCommand()(Code) | | |
runWithEvent | public void runWithEvent(Event event)(Code) | | |
|
|