Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.actions
Class ActionGroup


java.lang.Object
  extended by 
org.eclipse.ui.actions.ActionGroup
Direct Known Subclasses:
CommonActionProvider, EncodingActionGroup, NavigatorActionService, ResourceNavigatorActionGroup, SynchronizePageActionGroup, TextSearchGroup, UndoRedoActionGroup, WizardActionGroup, WorkingSetFilterActionGroup

public abstract class ActionGroup
extends Object

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

Constructor Summary
ActionGroup ()
           
 
Method Summary
 void dispose ()
          This method is called by the user of an action group to signal that the group is no longer needed.
 void fillActionBars ( IActionBars actionBars)
          Adds the applicable actions to a part's action bars, including setting any global action handlers.
 void fillContextMenu ( IMenuManager menu)
          Adds the applicable actions to a context menu, based on the state of the ActionContext.
  ActionContext getContext ()
          Returns the context used to determine which actions are added, and what their enabled state should be.
 void setContext ( ActionContext context)
          Sets the context used to determine which actions are added, and what their enabled state should be.
 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.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionGroup

public ActionGroup()
Method Detail

getContext

public 
ActionContext getContext()
Returns the context used to determine which actions are added, and what their enabled state should be.


setContext

public void setContext(
ActionContext context)
Sets the context used to determine which actions are added, and what their enabled state should be.

Parameters:
context - the context to use

fillContextMenu

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. Subclasses may override or extend this method.

Parameters:
menu - the context menu manager

fillActionBars

public void fillActionBars(
IActionBars actionBars)
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

updateActionBars

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.

The default implementation does nothing. Subclasses may override or extend this method.


dispose

public void dispose()
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.


Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire