public class JavaTemplates extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANNOTATION_TYPE_ICON
Icon for Java Annotation Type templates.
|
static String |
ENUM_ICON
Icon for Java Enum templates.
|
static String |
INTERFACE_ICON
Icon for Java Interface templates.
|
static String |
JAVA_ICON
Icon for Java Class templates.
|
Modifier and Type | Method and Description |
---|---|
static WizardDescriptor.InstantiatingIterator<WizardDescriptor> |
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 final String JAVA_ICON
JavaTemplates.createJavaTemplateIterator()
,
Constant Field Valuespublic static final String ENUM_ICON
JavaTemplates.createJavaTemplateIterator()
,
Constant Field Valuespublic static final String INTERFACE_ICON
JavaTemplates.createJavaTemplateIterator()
,
Constant Field Valuespublic static final String ANNOTATION_TYPE_ICON
JavaTemplates.createJavaTemplateIterator()
,
Constant Field Valuespublic 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<WizardDescriptor> createJavaTemplateIterator()
@TemplateRegistration(..., iconBase=JavaTemplates.JAVA_ICON) public static WizardDescriptor.InstantiatingIterator<?> myTemplates() { return JavaTemplates.createJavaTemplateIterator(); }
TemplateRegistration
,
JavaTemplates.JAVA_ICON