ActionListener
, Externalizable
, Serializable
, EventListener
, Action
, org.openide.util.actions.Presenter
, org.openide.util.actions.Presenter.Menu
, org.openide.util.actions.Presenter.Popup
, org.openide.util.ContextAwareAction
, org.openide.util.HelpCtx.Provider
public class ToolsAction
extends org.openide.util.actions.SystemAction
implements org.openide.util.ContextAwareAction, org.openide.util.actions.Presenter.Menu, org.openide.util.actions.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 | Description |
---|---|---|
static interface |
ToolsAction.Model |
Deprecated.
Useless, see
ActionManager . |
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 | Description |
---|---|
ToolsAction() |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed(ActionEvent ev) |
|
Action |
createContextAwareInstance(org.openide.util.Lookup actionContext) |
|
org.openide.util.HelpCtx |
getHelpCtx() |
|
JMenuItem |
getMenuPresenter() |
|
String |
getName() |
|
JMenuItem |
getPopupPresenter() |
|
protected void |
initialize() |
|
static void |
setModel(ToolsAction.Model m) |
Deprecated.
Useless, see
ActionManager . |
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
clone, getClass, notify, notifyAll, toString, wait, wait, wait
addNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removeNotify, removePropertyChangeListener, reset, writeExternal, writeReplace
protected void initialize()
initialize
in class org.openide.util.actions.SystemAction
public String getName()
getName
in class org.openide.util.actions.SystemAction
public org.openide.util.HelpCtx getHelpCtx()
getHelpCtx
in interface org.openide.util.HelpCtx.Provider
getHelpCtx
in class org.openide.util.actions.SystemAction
public JMenuItem getMenuPresenter()
getMenuPresenter
in interface org.openide.util.actions.Presenter.Menu
public JMenuItem getPopupPresenter()
getPopupPresenter
in interface org.openide.util.actions.Presenter.Popup
public void actionPerformed(ActionEvent ev)
actionPerformed
in interface ActionListener
actionPerformed
in class org.openide.util.actions.SystemAction
public Action createContextAwareInstance(org.openide.util.Lookup actionContext)
createContextAwareInstance
in interface org.openide.util.ContextAwareAction
@Deprecated public static void setModel(ToolsAction.Model m)
ActionManager
.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.