public interface ActionInfoManager
Modifier and Type | Method and Description |
---|---|
ActionInfo |
createAction(java.lang.Class<? extends IExtension> extension,
java.lang.String name,
java.lang.String text,
java.lang.String command,
java.lang.String icon,
java.lang.String accelerator,
long position,
java.lang.String tip)
Create a new action and return.
|
ActionInfo |
createAction(IExtension extension,
java.lang.String name,
java.lang.String text,
java.lang.String command,
java.lang.String icon,
java.lang.String accelerator,
long position,
java.lang.String tip) |
ActionInfoStatusCache |
createActionStatusCache() |
void |
execute(java.lang.String actionName,
java.lang.Object[] parameters) |
ActionInfo |
getAction(java.lang.String name)
Retrieve an action by name
|
java.util.Iterator<ActionInfo> |
getActions()
Return an iterator over all registered actions.
|
ActionInfo |
getTranslated(ActionInfo actionInfo) |
boolean |
isAllDisabled() |
void |
redirect(java.lang.String sourceName,
java.lang.String targetName)
Redirect the action source to the target.
|
ActionInfo |
registerAction(ActionInfo action)
Utility method that call registerAction with override to false.
|
ActionInfo |
registerAction(ActionInfo action,
boolean override)
Register the action in the actions of the system.
|
void |
setAllDisabled(boolean enabled) |
ActionInfo createAction(java.lang.Class<? extends IExtension> extension, java.lang.String name, java.lang.String text, java.lang.String command, java.lang.String icon, java.lang.String accelerator, long position, java.lang.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, java.lang.String name, java.lang.String text, java.lang.String command, java.lang.String icon, java.lang.String accelerator, long position, java.lang.String tip)
ActionInfo registerAction(ActionInfo action, boolean override)
action
- override
- ActionInfo registerAction(ActionInfo action)
action
- ActionInfo getAction(java.lang.String name)
name
- java.util.Iterator<ActionInfo> getActions()
ActionInfoStatusCache createActionStatusCache()
void redirect(java.lang.String sourceName, java.lang.String targetName)
sourceName
- of actiontargetName
- of actionvoid execute(java.lang.String actionName, java.lang.Object[] parameters)
ActionInfo getTranslated(ActionInfo actionInfo)
boolean isAllDisabled()
void setAllDisabled(boolean enabled)