You can populate existing domain modeling class diagrams
with Java source elements, including projects, packages, classes,
and interfaces, to visually represent and develop structures and relationships
in applications.
Before you begin
You must be in the
Package Explorer view
and have a domain modeling class diagram open.
About this task
To populate a class diagram with Java source elements, in
the
Package Explorer view or in the diagram editor,
right-click a source element or selected source elements; then click
Visualize and
complete one of the following steps:
- In the Package Explorer view, to add only
the selected elements to the diagram, click Add to Current
Diagram.
- In the Package Explorer view, to add the
selected elements and their contents to the diagram, click Add
Elements and Contents to Current Diagram.
- In the diagram editor, to add only the contained contents of the
selected elements to the diagram, click Add Only Contained
Elements to Current Diagram.
Results
The class diagram is populated with the selected elements
and contents.
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 in the Properties view
on the Annotation page.