Creating class diagrams of source elements in applications

You can create domain modeling class diagrams of existing source elements, including projects, packages, entity beans, classes, interfaces, and data types, to visually represent and develop structures and relationships in applications.

Before you begin

You must be in the Package Explorer or Project Explorer navigation view.

About this task

To create a class diagram of source elements, complete the following steps:

Procedure

  1. In the navigation view, select and right-click a source element or selected source elements; then click Visualize > Add to New Diagram File > Class Diagram.
  2. In the New Class Diagram wizard, in the Enter or select the parent folder field, specify the parent folder.
  3. In the File name field, type a file name.
  4. Optional: To enable the associated capabilities, click Next and complete the following steps:
    1. Select the Customize UI visibility for this diagram by selecting capabilities below check box.
    2. From the Capabilities list, expand a category and select the capabilities.
  5. Click Finish.

Results

A class diagram is created and opens in the diagram editor with the selected source elements in it.
Tip: If any selected source elements are Java 2 Platform, Standard Edition (J2SE) 5.0 classes with annotations, the details of the annotations are shown in the annotation compartments of the classes in the diagram. You can also add or edit annotations on the Annotation tab in the Properties view.

Feedback