Action Wizard: Action Type
See Also
The New Action wizard creates a new Action.
You open the New Action wizard by right-clicking a module project, choosing New > Other and selecting Action
from the Module Development category.
In the Action Type page, you have to set the type:
- Always Enabled (use CallableSystemAction). Specifies that the action will be invoked
from a menu item in the menu bar, from a toolbar button in a toolbar, or from a keyboard shortcut anywhere
in the IDE.
- Conditionally Enabled (use CookieAction). Specifies the classes for which the action will be created.
This is normally one of your own classes. For example, if you use the New File wizard,
one of the generated classes is called somethingDataObject. This is the name of the cookie class
that you type in the Conditionally Enabled drop-down list. However, optionally, you can also include one or more of the
following, which creates the action for all classes that subclass them:
- DataObject
- EditCookie
- EditorCookie
- OpenCookie
- Project
- User Selects One Node.
User May Select Multiple Nodes. Specifies the conditions under which the
action will be enabled. By default, the action will only be enabled when the
node for which it is created is selected. If you select User May Select Multiple Nodes, the action
will also be enabled when more nodes than just the node for which it is created
is selected.
- See Also
- About NetBeans Platform and Module Development
- About the NetBeans Platform
Legal Notices