public class ToolsAction extends SystemAction implements ContextAwareAction, Presenter.Menu, Presenter.Popup
NodeAction
s or CookieAction
s 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 register your action into UI/ToolActions
layer folder
(read more about layers)
since version 6.15.
Modifier and Type | Class and Description |
---|---|
static interface |
ToolsAction.Model
Deprecated.
Useless, see
ActionManager . |
Presenter.Menu, Presenter.Toolbar
PROP_ENABLED, PROP_ICON
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
ToolsAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ev) |
Action |
createContextAwareInstance(Lookup actionContext) |
HelpCtx |
getHelpCtx() |
JMenuItem |
getMenuPresenter() |
String |
getName() |
JMenuItem |
getPopupPresenter() |
protected void |
initialize() |
static void |
setModel(ToolsAction.Model m)
Deprecated.
Useless, see
ActionManager . |
clearSharedData, createPopupMenu, createToolbarPresenter, get, getIcon, getIcon, getValue, iconResource, isEnabled, linkActions, putValue, setEnabled, setIcon
addNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removeNotify, removePropertyChangeListener, reset, writeExternal, writeReplace
clone, getClass, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected void initialize()
initialize
in class SystemAction
public String getName()
getName
in class SystemAction
public HelpCtx getHelpCtx()
getHelpCtx
in interface HelpCtx.Provider
getHelpCtx
in class SystemAction
public JMenuItem getMenuPresenter()
getMenuPresenter
in interface Presenter.Menu
public JMenuItem getPopupPresenter()
getPopupPresenter
in interface Presenter.Popup
public void actionPerformed(ActionEvent ev)
actionPerformed
in interface ActionListener
actionPerformed
in class SystemAction
public Action createContextAwareInstance(Lookup actionContext)
createContextAwareInstance
in interface ContextAwareAction
@Deprecated public static void setModel(ToolsAction.Model m)
ActionManager
.