Adding labels to elements

Remember that these labels do not have any meaning in the generated code and are used only as references to locate elements in diagrams and windows.

About this task

Here is a list of all the element types that can be labeled:
  • Actors
  • Association/Aggregation role names
  • Attributes
  • Classes
  • Comments
  • Constraints
  • Control flows
  • Events
  • Files
  • Objects
  • Operations
  • Packages
  • Requirements
  • States
  • Types
  • Use cases

Procedure

  1. Right-click the selected element in the browser. (You can double-click to display the Features window immediately.)
  2. Select Features from the menu to display the Features window for the selected element.
  3. Click the L button next to the Name field. The Name and Label window displays.
  4. Type the text in the Label field. The read-only Name field displays the name of the element for reference.
  5. Click OK twice.

Feedback