org.netbeans.modules.jellytools.ide/3 3.14.0

org.netbeans.jellytools.actions
Class NewFileAction

java.lang.Object
  extended by org.netbeans.jellytools.actions.Action
      extended by org.netbeans.jellytools.actions.ActionNoBlock
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.jellytools.actions.Action
Action.Shortcut
 
Field Summary
 
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).
 
Method Summary
 
Methods inherited from class org.netbeans.jellytools.actions.ActionNoBlock
performAPI, performMenu, performPopup, performPopup, performPopup, performShortcut
 
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
 

Constructor Detail

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")

org.netbeans.modules.jellytools.ide/3 3.14.0

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.