Adding a Java Import Statement With Fast Import

The Fast Import feature enables you to quickly add import statements for Java classes in your file.

To add an import statement:

  1. Move the insertion point to the name of a class in your Java source file.
  2. Press Alt-Shift-I.

    If the class is found in the parser database, the Import Class dialog box is displayed. This contains a list of classes that match the class at the insertion point.

    For example, if the class name is List, the dialog box displays java.awt.List, java.util.List, and any other class you have defined named List.

  3. Select the class you want and click Import Class. The IDE generates the import statement in your Java source file.
Note Fast Import uses the parser database to generate the list of possible classes to import. If you want to add an import statement for a class you created, make sure the parser database is updated for that class.
See also
Updating the Parser Database
Creating New Java Code
Using the Import Management Tool

Legal Notices