Manages some set of actions. Loads some set of ActionProviders registerred
for some context, and allows to call isEnabled and doAction methods on them.
author: Jan Jancura
ActionsManager(Lookup lookup) Create a new instance of ActionManager.
This is called from synchronized blocks of other classes that need to have
just one instance of this.
Create a new instance of ActionManager.
This is called from synchronized blocks of other classes that need to have
just one instance of this. Therefore do not put any foreign calls here.
Performs action on this DebbuggerEngine.
Parameters: action - action constant (default set of constanct are definedin this class with ACTION_ prefix) true if action has been performed
isEnabled
final public boolean isEnabled(Object action)(Code)
Returns true if given action can be performed on this DebuggerEngine.
Parameters: action - action constant (default set of constanct are definedin this class with ACTION_ prefix) true if given action can be performed on this DebuggerEngine
Post action on this DebbuggerEngine.
This method does not block till the action is done,
if
ActionsManager.canPostAsynchronously returns true.
Otherwise it behaves like
ActionsManager.doAction .
The returned taks, or
ActionsManagerListener can be used to
be notified when the action is done.
Parameters: action - action constant (default set of constanct are definedin this class with ACTION_ prefix) a task, that can be checked for whether the action finishedor not. since: 1.5