Adding attributes to classifiers in diagrams

In UML diagrams, you can add attributes to classifiers to specify classifier properties.

Before you begin

You must have a diagram open in the diagram editor, and the classifier's attributes list compartment must be visible. Ensure that you have not set preferences to filter or hide attributes.

About this task

Note: If you set options to hide attributes, you do not see new attributes in the diagram editor.

To add an attribute to a classifier in a diagram:

Procedure

  1. In the diagram editor, right-click a classifier; then click Add UML > Attribute.
  2. Type a name for the attribute (and optionally the attribute's type; for example, attributeName:Integer) and press Enter.

What to do next

Tip: You can also add attributes to classifiers in the Project Explorer view.

Feedback