|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.ui.services.action.contributionitem.ActionRegistry
public class ActionRegistry
An action registry used for action life cycle management
Constructor Summary | |
---|---|
ActionRegistry()
|
Method Summary | |
---|---|
void |
dispose()
Calls dispose on all actions which implement the IDisposableAction interface so they
can perform their own clean-up. |
IAction |
getAction(java.lang.Object key)
Returns the action with the given key. |
protected java.util.Iterator |
getActions()
Returns an Iterator of all the actions. |
void |
init()
Calls init on all actions which implement the IDisposableAction interface so they
can do their initialization. |
void |
registerAction(IAction action)
Register an action with this registry. |
void |
registerAction(java.lang.String id,
IAction action)
Register an action with this registry using the given id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionRegistry()
Method Detail |
---|
public void init()
IDisposableAction
interface so they
can do their initialization.
public void dispose()
IDisposableAction
interface so they
can perform their own clean-up.
public IAction getAction(java.lang.Object key)
registerAction(IAction)
and
registerAction(String, IAction)
).
key
- the key
protected java.util.Iterator getActions()
Iterator
of all the actions.
public void registerAction(IAction action)
getAction(Object)
.
action
- the action to be registeredpublic void registerAction(java.lang.String id, IAction action)
id
will be used as the key to later obtain the action
using getAction(Object)
.
id
- the action IDaction
- the action
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.