The IDE's code completion database enables several Source Editor features of the IDE, including Java code completion, Fast Import, Go To Class, Go to Source, Go to Declaration, and Show Javadoc.
By default, the code completion database consists of files for the Java 2 SDK, Standard Edition, v. 1.4. In addition, it contains files for Java Servlet 2.2, Java Servlet 2.3, the Ant build tool, and XML APIs. If you install the apisupport module, database files for the IDE's OpenAPIs are also included.
![]() |
To include a different version of the Java 2 SDK in the code completion database,
mount the source files or rt.jar file for that version. Then open the
Code Completion Database Manager and delete the entry for the other SDK.
In order for Javadoc for a class to be visible when doing code completion, the sources must be mounted. |
Whenever you mount a filesystem of Java sources or classes, those classes are automatically added to the code completion database. The code completion database is automatically updated for that filesystem whenever a file is saved or successfully parsed.
![]() |
If you do not want the classes of a filesystem to be automatically added to the
parser database when the filesystem is mounted, you can turn this feature off.
Choose Tools ![]() ![]() |
Java files that are open in the Source Editor are automatically parsed after
two seconds of idle time. You can configure this time by choosing
Tools Options
and expanding the Editing node. Select the Java Sources node, and
edit the Automatic Parsing Delay property. If you disable automatic parsing
by setting the property to zero, files are parsed only when saved.
If you modify code externally, the code completion database is not updated until the file is modified within the IDE and successfully parsed or saved. Alternatively, you can update the code completion database as described above after source is modified externally.
Examples of external modification include using an external editor or updating files from a team source code versioning server.