org.netbeans.jellytools.actions |
Provides a set of classes to perform popup, main menu, IDE API and shortcut
actions.
The recommended way how to invoke popup or main menu is through an {@link
org.netbeans.jellytools.actions.Action} or {@link org.netbeans.jellytools.actions.ActionNoBlock}
instance. Predefined actions in this package are descendants either of Action
for non blocking operations or of ActionNoBlock for operations which
may block further execution by a modal dialog showing.
An action can be performed in "main menu", "popup", "shortcut" or "API"
modes. By default it is performed in the first available mode because not
every action is defined for all four modes. An example of usage can be:
// performs in default mode
new CopyAction().perform();
// performs in "menu" mode
new CopyAction().performMenu();
It also possible to specify a node or component on which an action will
be performed:
// selects node first and then performs on it
new FindAction().perform(myNode);
// focuses component first and then performs action in "popup"
mode
new FindAction().performPopup(myComponentOperator);
If an action is not predefined, you can create and use your own action.
// invokes main menu item "Edit|Copy"
new Action("Edit|Copy", null).perform();
// invokes popup menu item "Copy" on given node
new Action(null, "Copy").perform(myNode);
// invokes main menu item "Edit|Find" (first selects given
node)
new ActionNoBlock("Edit|Find", null).perform(myFolderNode);
// invoke popup menu item "Find" on given component
new ActionNoBlock(null, "Find").perform(myEditorOperator);
|
Java Source File Name | Type | Comment |
Action.java | Class | Ancestor class for all blocking actions.
It handles performing action through main menu (MENU_MODE), popup menu
(POPUP_MODE), IDE SystemAction API call (API_MODE) or through keyboard shortcut
(SHORTCUT_MODE).
Action can be performed in exact mode by calling performMenu(...),
performPopup(...), performAPI(...) or performShortcut(...).
If exact mode is not supported by the action it throws
UnsupportedOperationException.
Current implementation supports MENU_MODE when menuPath is defined, POPUP_MODE
when popupPath is defined, API_MODE when systemActionClass is defined and
SHORTCUT_MODE when shorcut is defined (see Action constructors).
Action also can be performed using runtime default mode by calling perform(...).
When default mode is not support by the action other modes are tried till
supported mode found and action is performed. |
ActionNoBlock.java | Class | |
ActionNoBlockTest.java | Class | |
ActionTest.java | Class | Test of org.netbeans.jellytools.actions.Action. |
AddLocaleAction.java | Class | Used to call "Add Locale" popup menu item on properties node. |
AddLocaleActionTest.java | Class | |
AttachWindowAction.java | Class | Used to attach a window to a new position by IDE API. |
AttachWindowActionTest.java | Class | Test AttachWindowAction. |
BuildProjectAction.java | Class | Used to call "Build Project" popup menu item on project's root node. |
BuildProjectActionTest.java | Class | |
CleanProjectAction.java | Class | Used to call "Clean Project" popup menu item on project's root node. |
CleanProjectActionTest.java | Class | |
CloneViewAction.java | Class | Used to call "Clone Document" popup menu item, "Window|Clone Document" main menu item or
"org.openide.actions.CloneViewAction". |
CloseAllDocumentsAction.java | Class | Used to call "Close All Documents" popup menu item, "Window|Close All Documents"
main menu, "org.netbeans.core.windows.actions.CloseAllDocumentsAction"
or Ctrl+Shift+F4 shortcut. |
CloseViewAction.java | Class | Used to call "Close Window" popup menu item, "Window|Close Window"
main menu, "org.openide.actions.CloseViewAction" or Ctrl+F4 shortcut. |
CompileAction.java | Class | Used to call "Build|Compile File" main menu item, "Compile File" popup menu or F9 shortcut. |
CompileActionTest.java | Class | |
CopyAction.java | Class | Used to call "Copy" popup menu item, "Edit|Copy" main menu item,
"org.openide.actions.CopyAction" or Ctrl+C shortcut. |
CopyActionTest.java | Class | |
CustomizeAction.java | Class | Used to call "Customize" popup menu item or
"org.openide.actions.CustomizeAction". |
CustomizeActionTest.java | Class | Test org.netbeans.jellytools.actions.CustomizeAction. |
CutAction.java | Class | Used to call "Cut" popup menu item, "Edit|Cut" main menu item,
"org.openide.actions.CutAction" or Ctrl+X shortcut. |
CutActionTest.java | Class | Test org.netbeans.jellytools.actions.CutAction. |
DebugProjectAction.java | Class | Used to call "Debug" popup menu item on project's root node,
"Run|Debug Main Project" main menu item or Ctrl+F5 shortcut. |
DebugProjectActionTest.java | Class | |
DeleteAction.java | Class | Used to call "Delete" popup menu item, "Edit|Delete" main menu item,
"org.openide.actions.DeleteAction" or Delete shortcut. |
DeleteActionTest.java | Class | |
DocumentsAction.java | Class | Used to call "Window|Documents" main menu item,
"org.netbeans.core.windows.actions.DocumentsAction" or
shortcut Shift+F4. |
EditAction.java | Class | Used to call "Edit" popup menu item or
"org.openide.actions.EditAction". |
EditActionTest.java | Class | |
ExploreFromHereAction.java | Class | Used to call "Explore From Here" popup menu item,
"org.openide.actions.OpenLocalExplorerAction". |
ExploreFromHereActionTest.java | Class | |
FavoritesAction.java | Class | Used to call "Window|Favorites" main menu item or CTRL+3 shortcut. |
FilesViewAction.java | Class | Used to call "Window|Files" main menu item. |
FindAction.java | Class | Used to call "Find" popup menu item, "Edit|Find" main menu item,
"org.openide.actions.FindAction" or Ctrl+F shortcut. |
FindActionTest.java | Class | |
FindInFilesAction.java | Class | Used to call "Find" popup menu item, "Edit|Find in Projects" main menu item,
"org.netbeans.modules.search.FindInFilesAction". |
FindInFilesActionTest.java | Class | Test of org.netbeans.jellytools.actions.FindInFilesAction. |
HelpAction.java | Class | Used to call "Help|Help Contents" main menu item,
or F1 shortcut. |
HelpActionTest.java | Class | |
MaximizeWindowAction.java | Class | Used to call "Maximize Window" popup menu item, "Window|Maximize Window" main menu item,
shortcut or maximize window by IDE API. |
MaximizeWindowActionTest.java | Class | Test org.netbeans.jellytools.actions.MaximizeWindowAction and
org.netbeans.jellytools.actions.RestoreWindowAction. |
NewFileAction.java | Class | |
NewFileActionTest.java | Class | |
NewProjectAction.java | Class | |
OpenAction.java | Class | Used to call "Open" popup menu item or
"org.openide.actions.OpenAction". |
OpenActionTest.java | Class | Test org.netbeans.jellytools.actions.OpenAction. |
OptionsViewAction.java | Class | Used to call "Tools|Options" main menu item or
"org.netbeans.core.actions.OptionsAction". |
OutputWindowViewAction.java | Class | Used to call "Window|Output|Output" main menu item or
"org.netbeans.core.output.OutputWindowAction". |
OutputWindowViewActionTest.java | Class | Test OutputWindowViewAction. |
PaletteViewAction.java | Class | Used to call "Window|Palette" main menu item. |
PaletteViewActionTest.java | Class | |
PasteAction.java | Class | Used to call "Paste" popup menu item, "Edit|Paste" main menu item,
"org.openide.actions.PasteAction" or Ctrl+V shortcut. |
PasteActionNoBlock.java | Class | Used to no-blocking call "Paste" popup menu item, "Edit|Paste" main menu item,
"org.openide.actions.PasteAction" or Ctrl+V shortcut. |
PasteActionTest.java | Class | |
ProjectViewAction.java | Class | Used to call "Window|Projects" main menu item. |
ProjectViewActionTest.java | Class | |
PropertiesAction.java | Class | Used to call "Properties" popup menu item, "Window|Properties" main menu item,
"org.openide.actions.PropertiesAction" or Ctrl+Shift+7 shortcut. |
PropertiesActionTest.java | Class | Test of org.netbeans.jellytools.actions.PropertiesAction. |
RenameAction.java | Class | Used to call "Rename" popup menu item or
"org.openide.actions.RenameAction". |
RenameActionTest.java | Class | |
ReplaceAction.java | Class | Used to call "Edit|Replace" main menu item,
"org.openide.actions.ReplaceAction" or Ctrl+H shortcut. |
ReplaceActionTest.java | Class | |
RestoreWindowAction.java | Class | Used to call "Restore Window" popup menu item, "Window|Restore Window" main menu item,
shortcut or restore window by IDE API. |
RuntimeViewAction.java | Class | Used to call "Window|Runtime" main menu item or
"org.netbeans.core.actions.ViewRuntimeTabAction". |
RuntimeViewActionTest.java | Class | |
SaveAction.java | Class | Used to call "Save" popup menu item, "File|Save" main menu item,
"org.openide.actions.SaveAction" or Ctrl+S shortcut. |
SaveActionTest.java | Class | Test of org.netbeans.jellytools.actions.SaveAction. |
SaveAllAction.java | Class | Used to call "File|Save All" main menu item or
"org.openide.actions.SaveAllAction". |
SaveAllActionTest.java | Class | Test of org.netbeans.jellytools.actions.SaveAllAction. |
SaveAsTemplateAction.java | Class | Used to call "Save As Template" popup menu item or
"org.openide.actions.SaveAsTemplateAction". |
SaveAsTemplateActionTest.java | Class | |
ShowDescriptionAreaAction.java | Class | Used to call "Show Description Area" popup menu item on a property sheet. |
ShowDescriptionAreaActionTest.java | Class | Test of ShowDescriptionAreaAction class. |
SortByCategoryAction.java | Class | Used to call "Sort by Category" popup menu item on a property sheet. |
SortByCategoryActionTest.java | Class | Test of SortByCategoryAction calss. |
SortByNameAction.java | Class | Used to call "Sort by Name" popup menu item on a property sheet. |
SortByNameActionTest.java | Class | Test of SortByNameAction class. |
ViewAction.java | Class | Used to call "View" popup menu item or
"org.openide.actions.ViewAction". |