Preferences
Class Diagram
In the 'ObjectAid Class Diagram' preferences the default options for new
class diagrams can be defined. The same options can also be defined in the
wizard for new class diagrams and in the context menu of an existing class
diagram. In general, these options are only applied to new classifiers as
they are added to a diagram; exceptions are noted below.
When enabled, the class diagram option 'Save Image with Diagram as ...'
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 of course for the extension. If you save your diagrams with
the source code, this should make it easy to integrate images into the
javadoc.
Classifiers
- Automatic Resize - determines if a classifier is automatically or
manually sized. Automatic Resize is turned off when you change the
classifier's size.
- Show Stereotype - shows or hides the stereotype of classifiers.
- Show Package Name - shows or hides the package name of classifiers.
- Show Attribute Default - shows or hides the default (initial) values
of all attributes. If the initial value is an anonymous inner class,
the actual code is shown as '{...}'.
- Show Operation Signature - shows or hides the operation (method)
signatures.
- Show Visibility - shows or hides the visibility (public '+',
package '~', protected '#', private '-') of attributes and
operations.
- Show Icons - determines if the visibility of features is shown as
UML-compliant text or as the typical Eclipse icons. This options is only
available on the diagram level. When turned on, nodes also show an icon
next to their name and get a light yellow background. The UML-compliant
text mode is still recommended for black-and-white printing.
Relationships
Relationship options refer to new classifiers that are added to a diagram:
- Add Generalizations - add all generalizations between this and other
classifiers in the diagram.
- Add Realizations - add all realizations between this and other
classifiers in the diagram.
- Add Dependencies - add all dependencies between this and other
classifiers in the diagram. Dependencies are also available for packages.
- Add Nesting Relationships - add all nesting relationships between this
and other classifiers in the diagram.
- Add Associations - add all associations between this and other
classifiers in the diagram.
- Show Association Labels - shows or hides the names of the attributes
upon which the association is based.
- Show Association Multiplicity - shows or hides the reverse engineered
multiplicity. It is 0..1 for normal attributes and 0..* for collections
and maps.
- Always Add Relationships - determines if relationships should
constantly be added to diagrams as source code is changed. This options
is only available on the diagram level.
Attributes/Operations
Attribute/operation options define a display filter for features of
classifiers. When all options are turned off for either attributes or
operations, the respective compartment becomes invisible.
- Show Public - determines if public features are shown.
- Show Package - determines if package features are shown.
- Show Protected - determines if protected features are shown.
- Show Private - determines if private features are shown.
Colors and Fonts
In Eclipse's Colors and Fonts preference page you can change all fonts
that are used in diagrams, as well as the colors of diagram nodes and
executions in sequence diagrams.