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

Inheritance diagram for org::openide::actions::ToolsAction:
Inheritance graph
[legend]
Collaboration diagram for org::openide::actions::ToolsAction:
Collaboration graph
[legend]

List of all members.

Classes

class  DelegateAction
class  G
class  Inline
interface  Model
class  Popup

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

static void setModel (Model m)

Static Package Attributes

static final long serialVersionUID = 4906417339959070129L

Static Private Member Functions

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

Static Private Attributes

static 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.

static 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)

Referenced by org::openide::actions::ToolsAction::Popup::MyMenu::fillSubmenu(), and org::openide::actions::ToolsAction::Inline::run().

static 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]

References getActionName().

JMenuItem org::openide::actions::ToolsAction::getPopupPresenter (  )  [inline]
static synchronized G org::openide::actions::ToolsAction::gl (  )  [inline, static, private]
static void org::openide::actions::ToolsAction::setModel ( Model  m  )  [inline, static]
Deprecated:
Useless, see ActionManager.

Member Data Documentation

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

The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2