You can open the Import Management Tool (IMT) by right-clicking a file in the
Filesystems window or Source Editor and choosing Tools Import
Management Tool. In the Create Import Statements page, you can configure which
import statements the IMT creates.
By default, the IMT creates an import statement for all classes and replaces
the fully qualified names with simple names. You can configure the IMT to only
create an import statement for a class when the class appears a certain number
of times in the file. For example, you can choose to leave fully qualified names
for classes that only appear one or two times, but create import statements
for all classes that appear three or more time. To set the IMT threshold, choose
Tools Options
from the main window, expand Editing
Java
Sources, and select Import Management Settings. Then enter the maximum occurrences
of fully qualified names in the Fully Qualified Name Threshold property. For
more information, see Configuring the Import Management
Tool.
For each identifier listed, the Create Import Statements page displays the following:
![]() |
The identifiers that appear in this page do not
include identifiers in guarded blocks of code, such as code generated by
the Form Editor. Those identifiers cannot be changed.
The identifiers listed might include some identifiers that the Import Management Tool can safely ignore. These identifiers include classes from the same package as the present file and classes from the java.lang package, which are automatically imported by default. For example, if you use the identifier String without an import statement or fully qualified name, the Import Management Tool recommends No Change. The String identifier is listed in the wizard, however, in case you want to use the fully qualified name. |
See Also | |
---|---|
Using the Import Management Tool Import Management Tool: Resolve Identifiers Page Import Management Tool: Remove Unused Imports Page Adding an Import Statement With Fast Import |