org.netbeans.spi.java.project.support.ui.templates
public class JavaTemplates extends Object
Modifier and Type | Method and Description |
---|---|
static WizardDescriptor.InstantiatingIterator |
createJavaTemplateIterator()
Creates new WizardIterator containing standard Package chooser
|
static WizardDescriptor.Panel<WizardDescriptor> |
createPackageChooser(Project project,
SourceGroup[] folders)
Create a Java-oriented target chooser suitable for templates which are Java
sources or otherwise intended to reside in a Java package.
|
static WizardDescriptor.Panel<WizardDescriptor> |
createPackageChooser(Project project,
SourceGroup[] folders,
WizardDescriptor.Panel<WizardDescriptor> bottomPanel)
Create a Java-oriented target chooser suitable for templates which are Java
sources or otherwise intended to reside in a Java package.
|
static WizardDescriptor.Panel<WizardDescriptor> |
createPackageChooser(Project project,
SourceGroup[] folders,
WizardDescriptor.Panel<WizardDescriptor> bottomPanel,
boolean validPackageRequired)
Create a Java-oriented target chooser suitable for templates which are Java
sources or otherwise intended to reside in a Java package.
|
public static WizardDescriptor.Panel<WizardDescriptor> createPackageChooser(Project project, SourceGroup[] folders) throws IllegalArgumentException
project
- the project which the template will be created infolders
- a list of possible Java package roots to create the new file in (must be nonempty)IllegalArgumentException
- if folders is emptypublic static WizardDescriptor.Panel<WizardDescriptor> createPackageChooser(Project project, SourceGroup[] folders, WizardDescriptor.Panel<WizardDescriptor> bottomPanel) throws IllegalArgumentException
project
- the project which the template will be created infolders
- a list of possible Java package roots to create the new file in (must be nonempty)bottomPanel
- panel which should be placed underneth the default chooserIllegalArgumentException
- if folders is emptypublic static WizardDescriptor.Panel<WizardDescriptor> createPackageChooser(Project project, SourceGroup[] folders, WizardDescriptor.Panel<WizardDescriptor> bottomPanel, boolean validPackageRequired) throws IllegalArgumentException
project
- the project which the template will be created infolders
- a list of possible Java package roots to create the new file in (must be nonempty)bottomPanel
- panel which should be placed underneth the default chooservalidPackageRequired
- indicates whether a only a valid (non-empty) package is acceptedIllegalArgumentException
- if folders is emptypublic static WizardDescriptor.InstantiatingIterator createJavaTemplateIterator()
Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.