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 |
|
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:
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:
|
|
Stereotype |
(Optional) Displays any stereotypes that have been defined for the operation; if you want to add others, either:
|
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:
virtual void myFunction() = 0;
|
|
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