Using the Import Management Tool

See Also 

The Import Management Tool (IMT) helps you manage external references in a source file. The IMT finds and proposes import statements when applicable, removes unused import statements, and fixes unresolved identifiers.

You can configure the IMT to automatically convert single-name import statements to package import statements and vice versa. You can also set the IMT to automatically choose between using import statements and fully qualified names. Once you have configured IMT settings, you can run the IMT in one step with its default actions or step through the wizard pages to examine and fine-tune its actions.

To start the Import Management Tool:

  1. Right-click the node for a Java class file in the Filesystems window, or right-click in the Source Editor that is displaying a Java file.
  2. Choose Tools and choose Import Management Tool from the contextual menu.
Tip In addition to using the Import Management Tool, you can generate individual import statements as you write your code by using the Fast Import feature. Press Alt-Shift-I when the insertion point in the Source Editor is on a class name.
See Also
Import Management Tool: Resolve Identifiers Page
Import Management Tool: Create Import Statements Page
Import Management Tool: Remove Unused Imports Page
Configuring the Import Management Tool
Adding an Import Statement With Fast Import

Legal Notices