public class DefaultActionInfoManager extends java.lang.Object implements ActionInfoManager
Constructor and Description |
---|
DefaultActionInfoManager() |
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) |
public 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)
ActionInfoManager
createAction
in interface ActionInfoManager
public 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)
createAction
in interface ActionInfoManager
public ActionInfo registerAction(ActionInfo action)
ActionInfoManager
registerAction
in interface ActionInfoManager
public ActionInfo registerAction(ActionInfo action, boolean override)
ActionInfoManager
registerAction
in interface ActionInfoManager
public ActionInfo getAction(java.lang.String name)
ActionInfoManager
getAction
in interface ActionInfoManager
public java.util.Iterator<ActionInfo> getActions()
ActionInfoManager
getActions
in interface ActionInfoManager
public ActionInfoStatusCache createActionStatusCache()
createActionStatusCache
in interface ActionInfoManager
public void redirect(java.lang.String sourceName, java.lang.String targetName)
ActionInfoManager
redirect
in interface ActionInfoManager
sourceName
- of actiontargetName
- of actionpublic void execute(java.lang.String actionName, java.lang.Object[] parameters)
execute
in interface ActionInfoManager
public ActionInfo getTranslated(ActionInfo actionInfo)
getTranslated
in interface ActionInfoManager
public void setAllDisabled(boolean enabled)
setAllDisabled
in interface ActionInfoManager
public boolean isAllDisabled()
isAllDisabled
in interface ActionInfoManager