The IDE's parser 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 parser database consists of files for the Java 2 SDK, Standard Edition, v. 1.3, plus Java Servlet 2.2 and the Ant build tool. If you install the apisupport module, database files for OpenAPIs are also included.
![]() |
To include a different version of the Java 2 SDK in your code completion, mount the source files or rt.jar for that version. Then update the parser database as described below for the newly mounted filesystem. |
You can update the parser database so that your own classes are among the choices offered when using code completion, Go To Class, Fast Import, and the other features that depend upon the parser database. If you never update the parser database, the code completion box shows only the default database entries and classes you have opened in the Source Editor during the current session.
To update the parser database:
The Update Parser Database dialog box is displayed.
Two files are created for each parsed filesystem: <prefix>.jcs, where classes and interfaces are stored, and <prefix>.jcb, where methods and fields are stored.
For libraries that you cannot edit, you probably want the parser database to include only protected and public members. For libraries (filesystems) that you are working on, you might want to also include private members.
Only static fields and methods are included in the database.
![]() |
To change the storage levels you set for a particular filesystem, select the filesystem in the Explorer and invoke the Update Parser Database command again. Make sure to select the root of the filesystem. If you select a subnode of the filesystem, the parser database will be updated, but the dialog box to set storage levels will not be displayed. |
You need to update the parser database only one time per filesystem. The first update defines the parser database files for a filesystem. After that, the database is automatically updated for that filesystem whenever a file is saved or successfully parsed.
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 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.
There are two exceptions to automatic parser database updates:
Examples of external modification include using an external editor or updating files from a team source code versioning server.
If you delete a whole filesystem, you need to manually delete the corresponding parser database files. See Deleting Parser Database Files for more information.
See also | |
---|---|
Mounting a Filesystem
Using Code Completion Opening a Java File With "Go To Class" Adding a Java Import Statement With Fast Import Using "Go To" Shortcuts |