Class Diagrams
The class diagrams of the ObjectAid UML Explorer are based on the
OMG's UML 2.0 specification
(see http://www.omg.org/uml/).
They can contain existing Java classes, interfaces, enumerations,
and annotations which are collectively called classifiers henceforth
in accordance with UML 2.0. Additionally, packages and package roots are
supported; the latter are JARs and source folders, modeled as UML components).
Class diagrams only reflect the existing source code, which cannot be manipulated
through the diagram. They are stored as XML files with the extension
'.ucls'.
All user interaction with the class diagram is mouse-based
(clicking, dragging, drag and drop, context menus) with only
a few exceptions:
- A toolbar combobox allows the selection of zoom factors between 10% and 400%.

- Standard accelerators are available for Delete (DEL), Open Source
(double-click or F3), Open Type Hierarchy (F4) and some other
common actions (Undo, Redo, Select All, Save, Save As).
Context menu commands apply to all selected items where feasible.
Eclipse refactoring is fully supported. Refactoring updates all
diagrams in the workspace appropriately.
Create a Diagram
Class diagrams follow the standard Eclipse conventions for editors:
They are opened from the Package Explorer and can be saved as usual.
Standard undo/redo behavior is available. Class diagrams are created
with a wizard:
- Go to the Package Explorer and select the package (or folder) where
the diagram should be stored. In general, it is recommended to keep your
diagrams with your source code.
- To open the 'New' wizard, either press Ctrl+N or right-click and select
'New', then 'Other...'.

- In the 'New' wizard page select 'ObjectAid UML Diagram', then
'Class Diagram' and press the 'Next' button.

- In the 'New UML Class Diagram' wizard page, you can
- Enter or browse for a folder.
- Enter the name of the class diagram without the extension.
- Under 'Classifiers', 'Relationships', 'Attributes' and 'Operations'
the diagram's options for new classifiers and relationships can be
selected. Please see Preferences for
details about these options.

- Press 'Finish' to create a new empty class diagram.
- The 'Classifiers' chapter describes how you can add classifiers
and other items to the diagram.
Context Menu
The class diagram context menu appears when you right-click on the
diagram's background and has the following options:
- Select
- All - select everything in the diagram.
- Connections - select all connections (relationships) in the diagram.
- Nodes - select all nodes (i.e. classifiers, packages and components)
in the diagram.

- Add Java Classifier - adds a classifier through a standard Eclipse
dialog.

- Automatic Image - saves an image whenever a diagram is saved.The type
of the image can be selected (GIF, PNG or JPEG). The file name is exactly
the same as the diagram except for the extension. If you save your
diagrams with the source code, this should make it easy to integrate
images into the package.html file. If an image type has been selected,
you can also save the image without saving the diagram with the 'Save Now'
menu option.

- Save the diagram as an image (PNG, GIF or JPEG).

- Layout Diagram - layout the entire diagram.
- Options, Show Attributes, Show Operations - Those contain the same options as the
New wizard and the Preferences, but in the form of context menus. They control the display
of new classifiers, associations, which relationships are added for new classifiers and
the visibility of attributes and operations. Please see
Preferences for details about these options.