Organize Imports

The following preferences define how the Organize Imports command generates the import statements in a compilation unit.

Organize Imports Preferences

Option

Description

Default

Import order list

This list of prefixes shows the sequential order for packages imported into a Java compilation unit.

java
javax
com

Add

Adds a package name prefix to the import order list. In the resulting dialog, type a package name or package name prefix.

n/a

Remove

Removes a package name prefix from the import order list.

n/a

Up

Moves the selected package name prefix up in the import order list.

n/a

Down

Moves the selected package name prefix down in the import order list.

n/a

Number of qualified imports before * is used

The number of fully-qualified import statements that are allowed from the same package before <package>.* is used.

9.