Use the Element has Property relationship to reference the properties of an element type.
Element properties can be seen both in the columns of the Element Table view and in the Properties view when an element has been selected, as shown in the figure below. They are also essential for implementing actions on elements, as they can be used as parameters for tools. See Special Properties for more information.
Attribute | Type | Description |
---|---|---|
TargetID * | Property | References the property. |
PropertyVisibleCondition | PropertyVisibleCondition | This complex attribute lets you define rules to specify when the element's property should be displayed in the Eclipse Property view. |
Category [O] | String | The category under which the property displays in the Properties view. |
Element Name [U] | Boolean | Determines whether the property's value contains the element name. Among other things, the element name is used as the editor title. |
Label [O] | String | Labels the property in the Properties view. If no label is stated, the property name is used. |
Sort_Direction
[O][Tree View] |
Selection | Sorts the elements of this type according to the referenced property.
Valid values include:
The default value is NONE. |
TreeView_Label
[O][Tree View] |
Boolean | Determines whether the property's value should be used as the element label in the Tree view.
At least one relationship of the element type should have this attribute set to true. If more labels are modeled, their values are concatenated and separated by a dash (-). Consider using Text Decorations instead of several Tree view label properties for an element type. Some linked element types allow the tree view label to be automatically set. See Linked Element Type for more information. The default value is false. |
Attribute | Value | Description |
---|---|---|
Essential: | ||
Target ID | Reference to the property SCLM_PROP_ELE_Proj | This property is available in the context of an element of this element type.
The value of the property is shown in the Property view when an element of this element type is selected. |
Optional: | ||
Category | --- | No special category is defined; the property is shown under the default category "Element" in the Property view. |
Element Name | false | This is not the property defining the element name of this element type. |
Label | --- | No special label for the relationship is defined. The label specified in the property is used in the UI. |
Tree View: | ||
Sort Direction | Ascending | This attribute is only relevant for attributes which are defined as Tree view labels. The entries of this element type are sorted in ascending order according to the values in this property. |
Tree View Label | true | This property is part of the Tree view label for elements of this element type. |