Navigating a Diagram Element

See Also

The IDE displays important information on elements in UML diagrams. For example, consider the information displayed on a Class element in a Class diagram.

Graphic of a Test Class component containing attributes and operations.

The following table describes the sections of a Class diagram element:

Section Description
Top Class name. Select this section to make the name editable.
  • If you rename a diagram class element, the IDE prompts you to create elements of the same name in the namespace.
  • If you choose Yes, the IDE reattaches the class to the previously existing element.
  • If the existing element is Unnamed, the IDE deletes it.
  • If you choose No, the IDE processes the edit and lets you create a name collision within the current namespace.
  • If you choose Cancel, the IDE cancels the edit.
If the IDE reattaches the element, the element and diagram are validated. Any invalid links attached to that element go away, along with nodes like Qualifiers.
Middle

Class attributes. In the Diagram editor, work with this section as follows:

  • Right-click this section to insert or delete attributes
  • Double-click a particular attribute to edit it

In the Projects window, expand the class node to display its attributes.

Bottom

Class operations. In the Diagram editor, the IDE offers a small scroll bar at the right of this section to let you scroll through hidden operations. Work with this section as follows:

  • Right-click this section to insert or delete operations.
  • Double-click a particular operation to edit it.

In the Projects window, expand the class node to display its operations.

See Also
Using the Compartment Customize Dialog Box
Navigating Within Diagrams

Legal Notices