Updating the Parser Database

The elements displayed by the Java code completion box are stored in the IDE's parser database. By default, this consists of files for the Java 2 SDK, v. 1.3. You can update the parser database so that your own classes are among the choices offered when using code completion.

To update the parser database:

  1. In the Explorer or Object Browser, right-click the package or filesystem containing the classes you want to add to the database. Choose Tools Update Parser Database from the contextual menu.

  2. Type a file name (with no extension) in the Parser Database File Prefix field of the Java Completion Database Configuration dialog box.

  3. In the Storage Levels panel of the same dialog box, select the level of code for classes, fields, and methods that you want included in the database.

  4. Click OK to add the files to the parser database.
The parser database can be found in the system\ParserDB folder in your installation directory. It consists of pairs of files with .jcb and .jcs extensions. The prefix is the one you specify in the Parser Database File Prefix field when you add a new package or filesysytem.

You can manually delete parser database files you no longer want. Delete both the .jcb and .jcs files, delete the storage.ser file, then restart the IDE. The storage.ser file is automatically rebuilt, and the classes that were in the deleted files will no longer be available for code completion.
See also
Using Java and HTML Completion

Completing a Java Expression

Legal Notices