Prev Next

Properties Window for Operations

The docked Properties window provides a convenient and immediate way to view and edit common properties of modeling objects, including operations. When you click on an operation in the Browser window or a diagram, the Properties window immediately shows the operation's properties on the 'Operation' tab. You can also swiftly display the properties of other types of object such as elements, connectors and diagrams on the same window without having to open and close separate dialogs.

The Properties window for operations also has a 'Tags' tab to create and display Tagged Values.

Access

After selecting the Properties window using one of these methods, click on the first required operation.

Ribbon

Start > Desktop > Design > Common > Properties

Design > Element > Editors > Element > Properties

Explore > Portals > Windows > Properties > Properties

Keyboard Shortcuts

Select operation in the Browser Window or a diagram.

Ctrl+2 or Ctrl+Enter

Properties

Property

Description

See also

Name

Displays the name that has been allocated to the operation. If you want to change this, overtype the text in the field.

Parameters

Lists the parameters that have been defined for this operation on the 'Parameters' tab of the operation 'Properties' dialog.

You can also type in simple parameter definitions in UML Test input; for example: age:int, max:int

Define Parameters

Return

Displays the return type of the operation (defaulting to 'void'). To change this, overtype the field or click on the drop-down arrow and click on:

  • The required data type returned by the operation, as defined by the code language (data type) or
  • '<none>' for no type (or you can type in a value manually if you prefer), or
  • 'Select Type' and browse for the appropriate operation classifier (you can add a new one if there are no classifiers that suit)

To add new code language data types that can be displayed in this list, see the Data Types topic.

Data Types

Scope

Displays the scope currently set for the operation. If it is necessary to change this, click on the drop-down arrow and select one of:

  • Public
  • Protected
  • Private
  • Package

Stereotype

(Optional) Displays any stereotypes that have been defined for the operation; if you want to add others, either:

  • Type a stereotype name, or
  • Click on the Browse. button and select the stereotype from the 'Stereotypes for <object name>' dialog
Stereotype Selector

Alias

(Optional) Displays any alias that has been defined as an alternative name or reference for the operation. If necessary, overtype this with a different alias.

Concurrency

Displays the concurrency of the operation - Sequential, Guarded or Synchronous. If necessary, click on the drop-down arrow and select a different setting.

Abstract

The flag indicating if this operation is an abstract function. If it is necessary to change this, type T or F in the field to change it to True or False, as appropriate.

Static

The flag indicating if this operation is a static member. If it is necessary to change this, type T or F in the field to change it to True or False, as appropriate.

Modifiers

Click on the Browse. button to display the 'Select Modifiers' dialog, and select the appropriate checkboxes:

  • 'Pure' - indicates that the method statement is pure virtual syntax. For example:

           virtual void myFunction() = 0;

  • 'Const' - indicates that the return type of the method is constant
  • 'Is Query' - indicates that the method does not modify the object
  • 'Return Array' - indicates that the method's returned value is in the form of an array
  • 'Synchronized' - for Java, sets a code engineering flag that relates to multi threading

Concurrency

Reflects the setting of the earlier field.

Leaf

Indicates whether the operation is a Leaf and cannot be overwritten.

Raised Exceptions

You can create code in your application to check for an exception and, if one occurs, to switch to the code defined by a Classifier element that you identify in this field, or through the operation 'Properties' dialog.

Redefine Operation and Check for Exceptions

Redefined Operation

If the parent element of the selected operation is the source element for a Generalize connector, you can configure the operation to redefine an operation in the target element. You can identify the target operation (and its parent element) in this field or in the operation 'Properties' dialog.

Redefine Operation and Check for Exceptions

native

The flag indicating if this operation is a native operation. If it is necessary to change this, type T or F in the field to change it to True or False, as appropriate.

Learn more