@Deprecated public class InstantiateAction extends NodeAction
DataObject.isTemplate()
.Presenter.Menu, Presenter.Popup, 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 |
---|
InstantiateAction()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
enable(Node[] activatedNodes)
Deprecated.
|
HelpCtx |
getHelpCtx()
Deprecated.
|
String |
getName()
Deprecated.
|
static Set<DataObject> |
instantiateTemplate(DataObject obj)
Deprecated.
Instantiate a template object.
|
protected void |
performAction(Node[] activatedNodes)
Deprecated.
|
actionPerformed, addNotify, createContextAwareInstance, getActivatedNodes, initialize, isEnabled, performAction, removeNotify, setEnabled, surviveFocusChange
asynchronous, getMenuPresenter, getPopupPresenter, getToolbarPresenter
clearSharedData, createPopupMenu, createToolbarPresenter, get, getIcon, getIcon, getValue, iconResource, linkActions, putValue, setIcon
addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removePropertyChangeListener, reset, writeExternal, writeReplace
clone, getClass, notify, notifyAll, toString, wait, wait, wait
accept, addPropertyChangeListener, getValue, putValue, removePropertyChangeListener
protected boolean enable(Node[] activatedNodes)
enable
in class NodeAction
protected void performAction(Node[] activatedNodes)
performAction
in class NodeAction
public String getName()
getName
in class SystemAction
public HelpCtx getHelpCtx()
getHelpCtx
in interface HelpCtx.Provider
getHelpCtx
in class SystemAction
public static Set<DataObject> instantiateTemplate(DataObject obj) throws IOException
customizer
(if there is one).
Also the node's default action
, if any, is run.obj
- the template to useIOException
- on I/O errorDataObject.createFromTemplate(org.openide.loaders.DataFolder)