Adding operations to classifiers in diagrams

In UML diagrams, you can add operations to classifiers to show the behavior of the classifier or the service that it provides.

Before you begin

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

About this task

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

Procedure

  1. In the diagram editor, right-click the classifier; then click Add UML > Operation.
  2. Type a name for the operation and press Enter.
  3. Optional: Add parameters to the operation.

What to do next

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

Feedback