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
- In the navigation view, select and right-click a source
element or selected source elements; then click .
- In the New Class Diagram wizard, in
the Enter or select the parent folder field,
specify the parent folder.
- In the File name field, type a file
name.
- Optional: To enable the associated capabilities,
click Next and complete the following steps:
- Select the Customize UI visibility for this
diagram by selecting capabilities below check box.
- From the Capabilities list, expand
a category and select the capabilities.
- 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.