当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
InstantiateAction (NetBeans Loaders API) - NetBeans API Javadoc 4.1.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:
- Action, ActionListener, ContextAwareAction, EventListener, Externalizable, HelpCtx.Provider, Presenter, Presenter.Menu, Presenter.Popup, Presenter.Toolbar, Serializable
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.
performAction
protected void performAction(Node[] activatedNodes)
- Deprecated.
getName
public String getName()
- Deprecated.
getHelpCtx
public HelpCtx getHelpCtx()
- Deprecated.
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)