Import Style page (Project Properties dialog box)

This is a feature of JBuilder Professional and Enterprise.

The Import Style page of the Project Properties dialog box sets the following options:

Always Import Classes

This option makes JBuilder always use fully-qualified class names when importing classes. This option does not change existing import lists.

Package Import Threshold

The Package Import Threshold sets how many classes must be used from a package before rewriting class imports into a package import statement. Classes up to this threshold are imported using individual class import statements.

When the threshold is exceeded, the entire package is imported. For example, when 3 is entered in this field, and you use four or more classes from a package, the entire package will be imported. If you set it to 0 or 1, the class will always be imported, just as if you had used the Always Import Classes option.

Package Prefix Order

Determines the order in which packages are listed in import lists. Change the place of a package in the sequence by selecting the package in this list and clicking the Move Up or Move Down buttons on the right.

Note: Comments in the import section of the code are preserved.

Tip: If you want to customize import statements for all new projects, choose Project|Default Project Properties and make your modifications on the Import Style page in the Default Project Properties dialog box.

Buttons pertaining to the package import list

These buttons control the content and sequence of the list in the Package Prefix Order pane.

Add Package

Click the Add Package button to select and add another package to the import list.

Add Blank Line

To insert an extra line break between import statements or groups of import statements, select the package you want to insert an extra line break below and click the Add Blank Line button.

Edit

To change a package import statement, select it and click the Edit button.

Remove

To remove an import from the list, select it and click Remove.

Move Up and Move Down

To move an import or a blank line within the list, click Move Up or Move Down.

Reset

Undoes all changes made since you opened the Import Style page.