java.awt.event.ActionListener, java.util.EventListener, javax.swing.Action, org.openide.util.actions.Presenter, org.openide.util.actions.Presenter.Menu, org.openide.util.actions.Presenter.Popup, org.openide.util.ContextAwareActionpublic 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
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 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. |
| Constructor | Description |
|---|---|
ToolsAction() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
actionPerformed(java.awt.event.ActionEvent ev) |
|
javax.swing.Action |
createContextAwareInstance(org.openide.util.Lookup actionContext) |
|
org.openide.util.HelpCtx |
getHelpCtx() |
|
javax.swing.JMenuItem |
getMenuPresenter() |
|
java.lang.String |
getName() |
|
javax.swing.JMenuItem |
getPopupPresenter() |
|
protected void |
initialize() |
|
static void |
setModel(ToolsAction.Model m) |
Deprecated.
Useless, see
ActionManager. |
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledclone, getClass, notify, notifyAll, toString, wait, wait, waitaddNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removeNotify, removePropertyChangeListener, reset, writeExternal, writeReplaceprotected void initialize()
initialize in class org.openide.util.actions.SystemActionpublic java.lang.String getName()
getName in class org.openide.util.actions.SystemActionpublic org.openide.util.HelpCtx getHelpCtx()
getHelpCtx in class org.openide.util.actions.SystemActionpublic javax.swing.JMenuItem getMenuPresenter()
getMenuPresenter in interface org.openide.util.actions.Presenter.Menupublic javax.swing.JMenuItem getPopupPresenter()
getPopupPresenter in interface org.openide.util.actions.Presenter.Popuppublic void actionPerformed(java.awt.event.ActionEvent ev)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class org.openide.util.actions.SystemActionpublic javax.swing.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.