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 Project Browser 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 tabs for:

  • Parameters
  • Behavior
  • (Initial) Code
  • Redefines
  • Preconditions and
  • Postconditions

Access

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

Ribbon

Start > Explore > Properties > Properties   or

Design > Element > Features > Operations: right-click on an operation | Properties window  or

Show > Portals > Window > Properties > Properties

Keyboard

Alt+1

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.

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 button and select the stereotype from the 'Stereotype Selector' 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 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

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