Creating Operations

You can create an operation on a modeling element in either of two places.

To create an operation from the Projects window:

  1. Expand the project and model nodes, and find the diagram element to which you want to add an operation.
  2. Right-click the element and choose New > Operation.
    The IDE adds a new unnamed operation under the element's node.

To create an operation from the Diagram editor:

  1. Open the diagram in the Diagram editor.
  2. Right-click a diagram element in the Operations section, and choose Create Operation.
    In the Operations section of the element, UML Modeling adds a new unnamed operation and opens an editable name field.
  3. In the name field, type the new operation name and any other code, click the operation and then do one of the following: UML Modeling displays the attribute in the element's Operations section.

Legal Notices