Editing Properties

In this section you will learn how to edit the properties of an element. Properties greyed out are not editable.

Abstract property

A check box is used as the editor for this property:
Abstract property checked Abstract property unchecked

The action performed when the abstract property is checked/unchecked depends on whether the abstract property belongs to the Java or UML category.

If the abstract property belongs to the Java category, checking will add the abstract keyword to the code, while unchecking will remove it.

If the abstract property belongs to the UML category, checking will set the value of this property to true in the UML repository, while unchecking will set it to false.

Active property

A check box is used as the editor for this property:
Active property checked Active property unchecked

Checking will set the value of this property to true in the UML repository, while unchecking will set it to false.

Aggregation property

A drop-down list box is used as the editor for this property:
Aggregation property

Select a new value from the drop-down list and press Enter to confirm the new value or press Escape to cancel editing.

Setting a new value will update the UML repository to reflect the change.

Background property

A combo drop-down list box is used as the editor for this property:
Background property

To start editing, press F2 while this property is selected or click with the mouse in the editor. The standard text editor keyboard shortcuts are available.

To stop editing and save the entered text press Enter. To cancel editing and discard any changes press Escape.

Enter a color value in RGB format or select it from the color chooser panel.

Changeability property

A drop-down list box is used as the editor for this property:
Changeability property

Select a new value from the drop-down list and press Enter to confirm the new value or press Escape to cancel editing.

Setting this property to Changeable will remove the final keyword from code. Setting this property to Frozen will add the final keyword to code.

Concurrency property

A drop-down list box is used as the editor for this property:
Concurrency property

Select a new value from the drop-down list and press Enter to confirm the new value or press Escape to cancel editing.

Setting this property to Sequential will remove the synchronized keyword from code. Setting this property to Guarded will add the synchronized keyword to code.

Display Compartment Attribute/Operation property

A drop-down list box is used as the editor for this property:
Display Comparment properties

Select a new value from the drop-down list and press Enter to confirm the new value or press Escape to cancel editing.

Setting this property to Show will display the compartment elements. Setting it to Hide will hide the compartment elements. And setting it to Use global setting (for diagrams) or Use diagram setting (for classes/interfaces) will show or hide the compartment elements depending on the value set globally or to its containing diagram.

Final property

A check box is used as the editor for this property:
Final property checked Final property unchecked

Checking will add the final keyword to the code, while unchecking will remove it.

Font Family property

A combo drop-down list box is used as the editor for this property:
Font Family property

To start editing, press F2 while this property is selected or click with the mouse in the editor. The standard text editor keyboard shortcuts are available.

To stop editing and save the entered text press Enter. To cancel editing and discard any changes press Escape.

Enter a font family name or select it from the list box.

Font Size property

A combo drop-down list box is used as the editor for this property:
Font Size property

To start editing, press F2 while this property is selected or click with the mouse in the editor. The standard text editor keyboard shortcuts are available.

To stop editing and save the entered text press Enter. To cancel editing and discard any changes press Escape.

Enter a font size value or select it from the list box.

Foreground property

A combo drop-down list box is used as the editor for this property:
Foreground property

To start editing, press F2 while this property is selected or click with the mouse in the editor. The standard text editor keyboard shortcuts are available.

To stop editing and save the entered text press Enter. To cancel editing and discard any changes press Escape.

Enter a color value in RGB format or select it from the color chooser panel.

Initial Value property

A text editor is used as the editor for this property:
Initial property

To start editing, press F2 while this property is selected or click with the mouse in the editor. The standard text editor keyboard shortcuts are available.

To stop editing and save the entered text press Enter. To cancel editing and discard any changes press Escape.

Leaf property

A check box is used as the editor for this property:
Leaf property checked Leaf property unchecked

Checking will set the value of this property to true in the UML repository, while unchecking will set it to false.

Multiplicity property

A combo drop-down list box is used as the editor for this property:
Multiplicity property

To start editing, press F2 while this property is selected or click with the mouse in the editor. The standard text editor keyboard shortcuts are available.

To stop editing and save the entered text press Enter. To cancel editing and discard any changes press Escape.

Multiplicity value must match the regular expression (\*)|(\d+)|(\d+..((\d+)|(\*))).

Also, typical multiplicities may be chosen from the drop-down list.

Name property

If the element is the Model, an Association or AssociationEnd, a text editor is used as the editor for this property:
Name property

For any other element, a combo text editor with an ellipsis button is used:
Name property

To start editing, press F2 while this property is selected or click with the mouse in the editor. The standard text editor keyboard shortcuts are available.

To stop editing and save the entered text press Enter. To cancel editing and discard any changes press Escape.

For those elements which name property editor has an ellipsis button, clicking on that button will fire the Rename refactoring action.

Namespace property

A combo text editor with an ellipsis button is used as editor for this property:
Namespace property

The text is not editable and to change the value of this property the ellipsis button should be clicked firing the Move refactoring action.

Native property

A check box is used as the editor for this property:
Native property checked Native property unchecked

Checking will add the native keyword to the code, while unchecking will remove it.

Owner property

A combo text editor with an ellipsis button is used as editor for this property:
Owner property

The text is not editable and to change the value of this property the ellipsis button should be clicked firing the Move refactoring action.

Owner Scope property

A drop-down list box is used as the editor for this property:
Owner Scope property

Select a new value from the drop-down list and press Enter to confirm the new value or press Escape to cancel editing.

Setting this property to Classifier will add the static keyword to code. Setting this property to Instance will remove the static keyword from code.

Participant property

A combo text editor with an ellipsis button is used as editor for this property:
Participant property

To start editing, press F2 while this property is selected or click with the mouse in the editor. The standard text editor keyboard shortcuts are available.

To stop editing and save the entered text press Enter. To cancel editing and discard any changes press Escape.

Clicking on the ellipsis button will show a Choose Class dialog where to choose the new participant from.

Query property

A check box is used as the editor for this property:
Query property checked Query property unchecked

Checking will set the value of this property to true in the UML repository, while unchecking will set it to false.

Returns property

A combo drop-down list box is used as the editor for this property:
Returns property

To start editing, press F2 while this property is selected or click with the mouse in the editor. The standard text editor keyboard shortcuts are available.

To stop editing and save the entered text press Enter. To cancel editing and discard any changes press Escape.

If the new return type is a primitive or the void type, it may be chosen from the drop-down list.

If the new return type is a class or interface, clicking on the ellipsis button will show a Choose Class dialog where to choose it from.

Root property

A check box is used as the editor for this property:
Root property checked Root property unchecked

Checking will set the value of this property to true in the UML repository, while unchecking will set it to false.

Specification property

A check box is used as the editor for this property:
Specification property checked Specification property unchecked

Checking will set the value of this property to true in the UML repository, while unchecking will set it to false.

Static property

A check box is used as the editor for this property:
Static property checked Static property unchecked

Checking will add the static keyword to the code, while unchecking will remove it.

Strictfp property

A check box is used as the editor for this property:
Strictfp property checked Strictfp property unchecked

Checking will add the strictfp keyword to the code, while unchecking will remove it.

Type property

A combo drop-down list box is used as the editor for this property:
Type property

To start editing, press F2 while this property is selected or click with the mouse in the editor. The standard text editor keyboard shortcuts are available.

To stop editing and save the entered text press Enter. To cancel editing and discard any changes press Escape.

If the new return type is a primitive, it may be chosen from the drop-down list.

If the new return type is a class or interface, clicking on the ellipsis button will show a Choose Class dialog where to choose it from.

Transient property

A check box is used as the editor for this property:
Transient property checked Transient property unchecked

Checking will add the transient keyword to the code, while unchecking will remove it.

Visibility property

A drop-down list box is used as the editor for this property:
Visibility property

Select a new value from the drop-down list and press Enter to confirm the new value or press Escape to cancel editing.

Setting a new value will update the code with the appropriate Java access modifier.

Volatile property

A check box is used as the editor for this property:
Volatile property checked Volatile property unchecked

Checking will add the volatile keyword to the code, while unchecking will remove it.