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.
On the Properties window and the Properties dialog for an operation, the 'Operation' tabs have the same fields.
Access
After selecting the Properties window using one of these methods, click on the first required operation.
Ribbon |
Start > Application > Design > Common > Properties Design > Element > Editors > Element > Properties Explore > Portals > Windows > Properties > Properties |
Keyboard Shortcuts |
Select operation in the Browser Window or a diagram. or |
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:
To add new code language data types that can be displayed in this list, see the Data Types topic. |
Coding 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;
|
|
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. |