当前页面:
在线文档首页 >
NetBeans API Javadoc 5.5.0
InstantiateAction (NetBeans Loaders API) - NetBeans API Javadoc 5.5.0
org.openide.actions
Class InstantiateAction
java.lang.Object
org.openide.util.SharedClassObject
org.openide.util.actions.SystemAction
org.openide.util.actions.CallableSystemAction
org.openide.util.actions.NodeAction
org.openide.actions.InstantiateAction
- All Implemented Interfaces:
- ActionListener, Externalizable, Serializable, EventListener, Action, Presenter, Presenter.Menu, Presenter.Popup, Presenter.Toolbar, ContextAwareAction, HelpCtx.Provider
Deprecated. Deprecated since 3.42. The use of this action should be avoided.
public class InstantiateAction
- extends NodeAction
Instantiate a template.
Enabled only when there is one selected node and
it represents a data object satisfying DataObject.isTemplate().
- See Also:
- Serialized Form
| Methods inherited from class org.openide.util.actions.SystemAction |
clearSharedData, createPopupMenu, createToolbarPresenter, get, getIcon, getIcon, getValue, iconResource, linkActions, putValue, setIcon |
| Methods inherited from class org.openide.util.SharedClassObject |
addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removePropertyChangeListener, reset, writeExternal, writeReplace |
InstantiateAction
public InstantiateAction()
- Deprecated.
enable
protected boolean enable(Node[] activatedNodes)
- Deprecated.
- Specified by:
enable in class NodeAction
performAction
protected void performAction(Node[] activatedNodes)
- Deprecated.
- Specified by:
performAction in class NodeAction
getName
public String getName()
- Deprecated.
- Specified by:
getName in class SystemAction
getHelpCtx
public HelpCtx getHelpCtx()
- Deprecated.
- Specified by:
getHelpCtx in interface HelpCtx.Provider- Specified by:
getHelpCtx in class SystemAction
instantiateTemplate
public static Set instantiateTemplate(DataObject obj)
throws IOException
- Deprecated.
- Instantiate a template object.
Asks user for the target file's folder and creates the file.
Then runs the node delegate's
customizer (if there is one).
Also the node's default action, if any, is run.
- Parameters:
obj - the template to use
- Returns:
- set of created objects or null if user canceled the action
- Throws:
IOException - on I/O error- See Also:
DataObject.createFromTemplate(org.openide.loaders.DataFolder)