public class ActionRegistry
extends java.lang.Object
Constructor and Description |
---|
ActionRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Calls dispose on all actions which implement the
Disposable
interface so they can perform their own clean-up. |
IAction |
getAction(java.lang.Object key)
Returns
null or the IAction with the given key. |
java.util.Iterator |
getActions()
Returns an
Iterator over all the actions. |
void |
registerAction(IAction action)
Register an action with this registry.
|
void |
removeAction(IAction action)
Removes an action from this registry.
|
public void dispose()
Disposable
interface so they can perform their own clean-up.public IAction getAction(java.lang.Object key)
null
or the IAction
with the given key.key
- the ID of the action being requestednull
or the action with the corresponding IDpublic java.util.Iterator getActions()
Iterator
over all the actions.public void registerAction(IAction action)
action
- the action being registered.public void removeAction(IAction action)
action
- the action to removeCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.