public class ToolsAction
extends SystemAction
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ToolsAction.Model
Deprecated.
Useless, see
ActionManager. |
| Constructor and Description |
|---|
ToolsAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent ev) |
javax.swing.Action |
createContextAwareInstance(Lookup actionContext)
Implements
ContextAwareAction interface method. |
HelpCtx |
getHelpCtx() |
javax.swing.JMenuItem |
getMenuPresenter() |
java.lang.String |
getName() |
javax.swing.JMenuItem |
getPopupPresenter() |
static void |
setModel(ToolsAction.Model m)
Deprecated.
Useless, see
ActionManager. |
public java.lang.String getName()
public HelpCtx getHelpCtx()
public javax.swing.JMenuItem getMenuPresenter()
public javax.swing.JMenuItem getPopupPresenter()
public void actionPerformed(java.awt.event.ActionEvent ev)
public javax.swing.Action createContextAwareInstance(Lookup actionContext)
ContextAwareAction interface method.public static void setModel(ToolsAction.Model m)
ActionManager.