org.netbeans.jellytools.actions
Class NewFileAction
java.lang.Object
org.netbeans.jellytools.actions.Action
org.netbeans.jellytools.actions.ActionNoBlock
org.netbeans.jellytools.actions.NewFileAction
public class NewFileAction
- extends ActionNoBlock
Used to call "File|New File..." main menu item, "New|Other..." popup menu
item, "org.netbeans.modules.project.ui.actions.NewFile" action or Ctrl+N
shortcut.
Usage:
new NewFileAction().performMenu();
new NewFileAction().performPopup();
new NewFileAction().performShortcut();
- See Also:
Action,
ActionNoBlock
| Fields inherited from class org.netbeans.jellytools.actions.Action |
AFTER_ACTION_WAIT_TIME, API_MODE, keystrokes, layerInstancePath, MENU_MODE, menuPath, POPUP_MODE, popupPath, SELECTION_WAIT_TIME, SHORTCUT_MODE, systemActionClass, WAIT_AFTER_SHORTCUT_TIMEOUT |
|
Constructor Summary |
NewFileAction()
Creates new NewFileAction instance. |
NewFileAction(String templateName)
Create new NewFileAction instance with name of template for popup
operation (only popup mode allowed). |
| Methods inherited from class org.netbeans.jellytools.actions.Action |
getComparator, getDefaultMode, getKeyStrokes, getMenuPath, getPopupPath, getSystemActionClass, isEnabled, isEnabled, isEnabled, isEnabled, perform, perform, perform, perform, perform, performAPI, performAPI, performAPI, performAPI, performMenu, performMenu, performMenu, performMenu, performPopup, performPopup, performShortcut, performShortcut, performShortcut, performShortcut, setComparator, setDefaultMode, testNodes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewFileAction
public NewFileAction()
- Creates new NewFileAction instance.
NewFileAction
public NewFileAction(String templateName)
- Create new NewFileAction instance with name of template for popup
operation (only popup mode allowed).
- Parameters:
templateName - name of template shown in sub menu (e.g. "Java Main
Class")