public interface ActionInfoManager
| 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.
|
ActionInfo createAction(Class<? extends IExtension> extension, String name, String text, String command, String icon, String accelerator, long position, String tip)
extension, - class that execute the action, extends IExtensionname, - name of the actiontext, - text to use to represent the action.command, - command used to execute the actionicon, - icon used to represent the actionaccelerator, - the key which invokes the actionposition, - position of the action when it is represented in the user interfacetip, - tooltip to associate to the actionActionInfo createAction(IExtension extension, String name, String text, String command, String icon, String accelerator, long position, String tip)
ActionInfo registerAction(ActionInfo action)
action - ActionInfo getAction(String name)
name - Iterator<ActionInfo> getActions()
ActionInfoStatusCache createActionStatusCache()
void redirect(String sourceName, String targetName)
sourceName - of actiontargetName - of actionActionInfo getTranslated(ActionInfo actionInfo)