Handle NetBeans New File wizard.
It is invoked either from main menu File -> New File...
NewFileAction.performMenu();
or from popup menu on folder NewFileAction.performPopup();
Usage:
NewFileWizardOperator op = NewFileWizardOperator.invoke();
op.selectCategory("Java Classes");
op.selectFileType("Java Class");
Creates a new object from template. It invokes new file wizard,
sets given project, category and file type. On the next panel it
sets package and object name. If package name is null or empty, it lets
the default one.
Parameters: projectName - name of project in which new object should be created Parameters: category - category to be selected Parameters: fileType - file type to be selected Parameters: packageName - package name of new object Parameters: name - name of created object
Selects specified node and invokes new file wizard by default action.
In "Choose File Type" wizard's page it selects given category and filetype.
It returns instance of NewFileWizardOperator representing "Name and Location"
page of the wizard.
Parameters: node - node which should be selected before new file wizard is invoked Parameters: category - category to be selected Parameters: filetype - file type to be selected (exact name - not substring) instance of NewFileWizardOperator