Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

org::openide::actions::ToolsAction Class Reference

Collaboration diagram for org::openide::actions::ToolsAction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

String getName ()
HelpCtx getHelpCtx ()
JMenuItem getMenuPresenter ()
JMenuItem getPopupPresenter ()
void actionPerformed (java.awt.event.ActionEvent ev)
Action createContextAwareInstance (Lookup actionContext)

Static Public Member Functions

void setModel (Model m)

Static Package Attributes

final long serialVersionUID = 4906417339959070129L

Static Private Member Functions

synchronized G gl ()
String getActionName ()
List generate (Action toolsAction, boolean forMenu)

Static Private Attributes

G gl

Detailed Description

A "meta-action" that displays (in a submenu) a list of enabled actions provided by modules. Such registered actions are called "service actions": they are provided externally but seem to provide additional services on existing components. Often they will be NodeActions or CookieActions so that they will be enabled based on the node selection, i.e. the node containing this popup. It is desirable for most nodes to include this action somewhere in their popup menu.

Note: you do not need to touch this class to add a service action! Just add the action to a module manifest in an Action section.

The list of registered service actions is provided to this action from the implementation by means of ActionManager.

Author:
Jaroslav Tulach


Member Function Documentation

void org::openide::actions::ToolsAction::actionPerformed java.awt.event.ActionEvent  ev  )  [inline]
 

Action org::openide::actions::ToolsAction::createContextAwareInstance Lookup  actionContext  )  [inline]
 

Implements ContextAwareAction interface method.

List org::openide::actions::ToolsAction::generate Action  toolsAction,
boolean  forMenu
[inline, static, private]
 

Implementation method that regenerates the items in the menu or in the array.

Parameters:
forMenu true if Presenter.Menu should be used false if Presenter.Popup
list (can be null)

String org::openide::actions::ToolsAction::getActionName  )  [inline, static, private]
 

HelpCtx org::openide::actions::ToolsAction::getHelpCtx  )  [inline]
 

JMenuItem org::openide::actions::ToolsAction::getMenuPresenter  )  [inline]
 

String org::openide::actions::ToolsAction::getName  )  [inline]
 

JMenuItem org::openide::actions::ToolsAction::getPopupPresenter  )  [inline]
 

synchronized G org::openide::actions::ToolsAction::gl  )  [inline, static, private]
 

Lazy initialization of global listener.

void org::openide::actions::ToolsAction::setModel Model  m  )  [inline, static]
 

Deprecated:
Useless, see ActionManager.


Member Data Documentation

G org::openide::actions::ToolsAction::gl [static, private]
 

final long org::openide::actions::ToolsAction::serialVersionUID = 4906417339959070129L [static, package]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:14:02 2009 for ACS Java API by doxygen 1.3.8