Creating Attributes
You can create an attribute on a modeling element in either of two places.
- Even though you can create attributes on any Class, Actor, or link in a project, the Diagram editor displays attributes on classes only. To see the attributes on another kind of element, display the element's Properties window.
To create a new attribute from the Projects window:
- Expand the project and model nodes, and find the diagram element to which you want to add an attribute.
- Right-click the element and choose New > Attribute.
The IDE adds a new unnamed attribute under the element's node.
To create a new attribute from the Diagram editor:
- Open the diagram in the Diagram editor.
- Right-click a diagram element in the Attributes section, and choose Create Attribute.
In the element's Attributes section, UML Modeling adds a new unnamed attribute and opens an editable name field.
- Click in the name field, type the new attribute name, and then do one of the following:
- Click outside the box.
- Press Enter.
UML Modeling displays the attribute in the element's Attributes section.
Legal Notices