public class DefaultActionInfoManager extends Object implements ActionInfoManager
| Constructor and Description |
|---|
DefaultActionInfoManager() |
| Modifier and Type | Method and Description |
|---|---|
ActionInfo |
createAction(Class<? extends IExtension> extension,
String name,
String text,
String command,
String icon,
String accelerator,
long position,
String tip)
Create a new action and return.
|
ActionInfo |
createAction(IExtension extension,
String name,
String text,
String command,
String icon,
String accelerator,
long position,
String tip) |
ActionInfoStatusCache |
createActionStatusCache() |
void |
execute(String actionName,
Object[] parameters) |
ActionInfo |
getAction(String name)
Retrieve an action by name
|
Iterator<ActionInfo> |
getActions()
Return an iterator over all registered actions.
|
ActionInfo |
getTranslated(ActionInfo actionInfo) |
void |
redirect(String sourceName,
String targetName)
Redirect the action source to the target.
|
ActionInfo |
registerAction(ActionInfo action)
Register the action in the actions of the system, and return the action
that is registered.
|
public ActionInfo createAction(Class<? extends IExtension> extension, String name, String text, String command, String icon, String accelerator, long position, String tip)
ActionInfoManagercreateAction in interface ActionInfoManagerpublic ActionInfo createAction(IExtension extension, String name, String text, String command, String icon, String accelerator, long position, String tip)
createAction in interface ActionInfoManagerpublic ActionInfo registerAction(ActionInfo action)
ActionInfoManagerregisterAction in interface ActionInfoManagerpublic ActionInfo getAction(String name)
ActionInfoManagergetAction in interface ActionInfoManagerpublic Iterator<ActionInfo> getActions()
ActionInfoManagergetActions in interface ActionInfoManagerpublic ActionInfoStatusCache createActionStatusCache()
createActionStatusCache in interface ActionInfoManagerpublic void redirect(String sourceName, String targetName)
ActionInfoManagerredirect in interface ActionInfoManagersourceName - of actiontargetName - of actionpublic void execute(String actionName, Object[] parameters)
execute in interface ActionInfoManagerpublic ActionInfo getTranslated(ActionInfo actionInfo)
getTranslated in interface ActionInfoManager