Eclipse GEF
2.1

org.eclipse.gef.ui.actions
Class ActionRegistry

java.lang.Object
  |
  +--org.eclipse.gef.ui.actions.ActionRegistry

public class ActionRegistry
extends Object

A container for editor actions. You must register the actions before they will be available to the editor.


Constructor Summary
ActionRegistry()
           
 
Method Summary
 void dispose()
          Calls dispose on all actions which implement the Disposable interface so they can perform their own clean-up.
 IAction getAction(Object key)
          Returns the action with the given key.
 Iterator getActions()
          Returns an Iterator of all the actions.
 void registerAction(IAction action)
          Register an action with this registry.
 void removeAction(IAction action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionRegistry

public ActionRegistry()
Method Detail

dispose

public void dispose()
Calls dispose on all actions which implement the Disposable interface so they can perform their own clean-up.


getAction

public IAction getAction(Object key)
Returns the action with the given key.


getActions

public Iterator getActions()
Returns an Iterator of all the actions.


registerAction

public void registerAction(IAction action)
Register an action with this registry. The action must have an id associated with it.


removeAction

public void removeAction(IAction action)

Eclipse GEF
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.