Relationship: Element Has Property

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.

Figure 1. Properties view
Element Properties in the Properties View
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.
SeqNo Integer Position number of the property in the Properties view. Sequence numbers that appear twice result in a random arrangement of the properties in the Property view.
Note: The category is always the higher priority in the arrangement of a property in the Properties view.
Sort_Direction

[O][Tree View]

Selection Sorts the elements of this type according to the referenced property.

Valid values include:

  • NONE
  • Ascending
  • Descending

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.