Generating Documentation

Together provides documentation support for your Java projects, supporting Javadoc functionality and more. Output is html and can be displayed in the Help browser or in your preferred web browser. The wizard described below guides you briefly through the process of creating documentation. For a detailed explanation of dialog options in this wizard, see Documentation Wizard.

  1. From the menubar, select File > Export. The Export dialog opens.


  2. Select "UML Documentation," and click "Next."


  3. A new dialog opens:



    NB:
    If the message "Javadoc command location not specified on the Javadoc preference page" appears at the top of the dialog, exit the wizard and configure your Javadoc preferences as follows. Navigate to Window > Preferences. Expand "Java," and select "Javadoc." On the right-hand side of the dialog, enter the location of your javadoc.exe file. Typically, this in the bin directory of your sdk or jdk.



  4. Select the project, packages, or diagrams for which you want to generate documentation. Click on a package name to display its contents to the right. You may generate docs for only one project at a time.

  5. Select the type of output. "Directory" will place documentation in a directory structure, the location of which you specify in the "Destination" box below. "Jar file" will create documentation in the jar file whose path and name you enter in the "Jar file" box below. "E-mail" will send the results of the documentation via email. To use the latter option, you must have specified an email server, user, and password on the Documentation preferences page.

    NB: JDK 1.4 limitation: If you are using JDK 1.4, you will need to specify a location other than the default. If not, the generated documentation may not appear when opened in a browser.

  6. Click "Next." A new dialog opens.



  7. Select the options you want to include in documentation.


  8. Click "Next." A new dialog opens.



  9. Select the options desired. The document title will appear on the overview page of your documentation. Select the visibility of members to be included. If you select "Style sheet," you must specify a path to the appropriate file.

  10. Click "Next." A new dialog opens:



  11. You may enter standard javadoc options, specifying path names where needed. If you select "Overview" or "Save the settings of this Javadoc export as an Ant Script," you must specify paths.

    NB: Activating the Ant script option creates the Ant file that can be used to generate pure Javadoc documentation only. The Ant script will not produce full UML Documentation.


  12. Click "Finish" to generate the documentation files in the location you specified.
    NB:


  13. Once you have generated documentation for a project, you can open it in a browser by selecting Navigate > Open UML Documentation:


 

Related Topics:

Documentation Wizard

Overview of the UML Documentation Structure

Documentation Preferences