Package org.eclipse.gef.ui.actions
Class ActionRegistry
java.lang.Object
org.eclipse.gef.ui.actions.ActionRegistry
A container for editor actions. You must register the actions before they
 will be available to the editor.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()Calls dispose on all actions which implement theDisposableinterface so they can perform their own clean-up.Returnsnullor theIActionwith the given key.Returns anIteratorover all the actions.voidregisterAction(IAction action) Register an action with this registry.voidremoveAction(IAction action) Removes an action from this registry.
- 
Constructor Details- 
ActionRegistrypublic ActionRegistry()
 
- 
- 
Method Details- 
disposepublic void dispose()Calls dispose on all actions which implement theDisposableinterface so they can perform their own clean-up.
- 
getActionReturnsnullor theIActionwith the given key.- Parameters:
- key- the ID of the action being requested
- Returns:
- nullor the action with the corresponding ID
 
- 
getActionsReturns anIteratorover all the actions.- Returns:
- an iterator over all actions
 
- 
registerActionRegister an action with this registry. The action must have an ID.- Parameters:
- action- the action being registered.
 
- 
removeActionRemoves an action from this registry. The action must have an ID.- Parameters:
- action- the action to remove
 
 
-