| java.lang.Object org.eclipse.ui.actions.ActionGroup
All known Subclasses: org.eclipse.ui.actions.WorkingSetFilterActionGroup, org.eclipse.ui.operations.UndoRedoActionGroup,
ActionGroup | abstract public class ActionGroup (Code) | | An ActionGroup represents a group of actions
which are added to a context menu, or the action bars of a part, together.
The group is given a context which can be used to determine which actions
are added, and what their enabled state should be.
This class is intended only as a convenience for managing groups of actions.
Clients are not required to use this class in order to add actions to context
menus or action bars.
Clients should subclass this class and extend or override the appropriate fill methods.
since: 2.0 |
Method Summary | |
public void | dispose() This method is called by the user of an action group to signal that the group is
no longer needed. | public void | fillActionBars(IActionBars actionBars) Adds the applicable actions to a part's action bars,
including setting any global action handlers. | public void | fillContextMenu(IMenuManager menu) Adds the applicable actions to a context menu,
based on the state of the ActionContext .
The default implementation does nothing. | public ActionContext | getContext() Returns the context used to determine which actions are added,
and what their enabled state should be. | public void | setContext(ActionContext context) Sets the context used to determine which actions are added,
and what their enabled state should be. | public void | updateActionBars() Updates the state of the actions added to the action bars,
including any global action handlers,
based on the state of the ActionContext . |
dispose | public void dispose()(Code) | | This method is called by the user of an action group to signal that the group is
no longer needed. Subclasses typically implement this method to deregister
any listeners or to free other resources.
The default implementation calls setContext(null) .
Subclasses may extend this method.
|
fillActionBars | public void fillActionBars(IActionBars actionBars)(Code) | | Adds the applicable actions to a part's action bars,
including setting any global action handlers.
The default implementation does nothing.
Subclasses may override or extend this method.
Parameters: actionBars - the part's action bars |
fillContextMenu | public void fillContextMenu(IMenuManager menu)(Code) | | Adds the applicable actions to a context menu,
based on the state of the ActionContext .
The default implementation does nothing.
Subclasses may override or extend this method.
Parameters: menu - the context menu manager |
getContext | public ActionContext getContext()(Code) | | Returns the context used to determine which actions are added,
and what their enabled state should be.
|
setContext | public void setContext(ActionContext context)(Code) | | Sets the context used to determine which actions are added,
and what their enabled state should be.
Parameters: context - the context to use |
updateActionBars | public void updateActionBars()(Code) | | Updates the state of the actions added to the action bars,
including any global action handlers,
based on the state of the ActionContext .
The default implementation does nothing.
Subclasses may override or extend this method.
|
|
|