Using the Import Management Tool

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 panes 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 Explorer, 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 in a class name.
See also
Import Management Tool: Resolve Identifiers Pane
Import Management Tool: Create Import Statements Pane
Import Management Tool: Remove Unused Imports Pane
Configuring the Import Management Tool
Adding an Import Statement With Fast Import

Legal Notices