Import Management Tool
Create Import Statements

You can open the Import Management Tool (IMT) by right-clicking a file in the Explorer or Source Editor and choosing Tools and choosing Import Management Tool. In the Create Import Statements pane, you can configure which import statements the IMT creates.

By default, whenever the IMT finds more than four instances of a fully qualified class name, it creates an import statement for the package and replaces the fully qualified names with simple names. Likewise, if the source file contains an import statement that is referenced less than five times by a simple name, the IMT removes the import statement and changes the simple names to fully qualified names. You can change the default IMT threshold by changing the Maximum of Fully Qualified Names in Source property in the Import Management Tool Settings.

For each identifier listed, the Create Import Statements pane displays the following:

Important The identifiers that appear in this pane do not include identifiers in guarded blocks of code, such as code generated by the Form Editor, if you have the Form Editor installed in your version of the IDE. 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 Pane
Import Management Tool: Remove Unused Imports Pane
Configuring the Import Management Tool
Adding an Import Statement With Fast Import

Legal Notices