Method Detail

createPackageChooser

Create a Java-oriented target chooser suitable for templates which are Java
sources or otherwise intended to reside in a Java package.
The user is prompted to choose a package location for the new file and a (base) name.

Parameters:

project - the project which the template will be created in

folders - a list of possible Java package roots to create the new file in (must be nonempty)

Create a Java-oriented target chooser suitable for templates which are Java
sources or otherwise intended to reside in a Java package.
The user is prompted to choose a package location for the new file and a (base) name.
Resulting panel can be decorated with additional panel. Which will
be placed below the standard package chooser.

Parameters:

project - the project which the template will be created in

folders - 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 chooser

Create a Java-oriented target chooser suitable for templates which are Java
sources or otherwise intended to reside in a Java package.
The user is prompted to choose a package location for the new file and a (base) name;
this method allows to specify whether a valid (non-empty) package is required.
Resulting panel can be decorated with additional panel. Which will
be placed below the standard package chooser.

Parameters:

project - the project which the template will be created in

folders - 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 chooser

validPackageRequired - indicates whether a only a valid (non-empty) package is accepted