Code Completion

If you want to benefit from the Java code completion for your own Java Archives, you should read the following description, an abstract of the NetBeans/Forte IDE help:

"...

The IDE's parser database enables several Source Editor features of the IDE, including Java code completion, Fast Open, Fast Import, Go to Source, Go to Declaration, and Show Javadoc.

By default, the parser database consists of files for the Java 2 SDK, 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.

You can update the parser database so that your own classes are among the choices offered when using code completion, Fast Open, Fast Import, and the other features that depend upon the parser database.

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.

    The Update Parser Database dialog box is displayed.

  2. Type a file name (with no extension) in the Parser Database File Prefix field of the Update Parser Database dialog box. Use a different prefix for each package or filesystem.

    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.

  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.

    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.

  4. Click OK to add the files to the parser database.

..."


Legal Notices