How to Use Toby's PL/SQL Editor.

This page is still under construction. Please be patient and hopefully it will eventually become a more useful aid.

You can generate PL Doc documentation within the plsqleditor plugin. In order to do this, you must already have downloaded pldoc from somewhere. A possible site is http://pldoc.sourceforge.net/

Once you have downloaded the pldoc tool, you can configure it using the Pldoc Preferences page, located under the PL/SQL Preferences section of the Eclipse Preferences.

Most of the fields to enter are fairly obvious.

  1. The Path should be the directory that contains the pldoc.bat or pldoc.sh script.

  2. The Use of the output directory Radio Group allows you to configure the output directory in one of three ways:

    1. Absolute – this means that ALL files you execute pldoc on will be output to the same directory. I don't recommend this, but if you are in a hurry, or wish to specify something very specific for some purpose, you can do this.

    2. Local File System Relative. This assumes that the value you supply in the Output Directory field is a fully qualified directory. It treats that values as a base directory. Then underneath this base directory, it will append a copycat set of directories to mimic the directory structure under the project owning the file (including the project directory). So, if you have a project at “DRIVE:/dev/eclipse/workspace/my_project” and you specify an output directory called “DRIVE:/pldoc”, and you try to generate pldoc for a file located at “myschema/myschema_mypackage.pkh” then the output files will be generated at “DRIVE:/pldoc/my_project/myschema”.

    3. Project Relative. This will take whatever value you supply in the Output Directory field and append it as a directory (or set of directories) to the project that contains the file. Then underneath this base directory, it will append a copycat set of directories to mimic the directory structure under the project owning the file (not including the project directory, which is already higher up). So, if you have a project at “DRIVE:/dev/eclipse/workspace/my_project” and you specify an output directory called “pldoc”, and you try to generate pldoc for a file located at “myschema/myschema_mypackage.pkh” then the output files will be generated at “DRIVE:/dev/eclipse/workspace/my_project/pldoc/myschema”.

PlDoc will only be executable from header files (pkh files).

PLEASE NOTE that pldoc does not like the SHOW ERRORS command to be at the end of your file. If you have that at the end of your header files, you may have to remove that for the process to work.