89
4.3. CONFIGURATION AND PREFERENCES
43
Label Conguration
The
La
bel
Con
fig
u
ra
tion is used to determine what to use for the text labels
of elements in places, where a shorthand is needed. Examples are elements in
the
Out
line
View or the link targets in the
Link column.
ProR will determine the label by looking at the label conguration, which
is a list of Strings. It will go through the list, top to bottom. If the element has
an attribute with a matching name, that attribute value is used as the label.
If none is found, then the element’s internal ID is displayed.
To congure, select
La
bel
Con
fig
u
ra
tion in the top pane of the dialog. On
the bottom pane, you see the
De
fault
La
bel property. Doubleclick the value
(on the right), then click on the ellipses (...) to open the conguration dialog.
Under
Fea
ture, you will see the list of attribute names that will be used for the
label, if found.
Use the
Add and
Re
move buttons to add more attribute names to be searched
for. The search order can be adjusted with
Up and
Down.
Information. ItisgoodpracticetousetheIDPresentation(5.3.1)togenerate
user-friendly IDs, and to use these as the rst match for a label. As IDs
are unique, you’ll alwayshave a unique identier that is typically also used
for communication.
4.3.3 Datatype Conguration
This conguration is opened via
ProR
|
Datatype
Con
fig
u
ra
tion...
The dialog shows two folders, one for SpecTypes and one for Datatypes.
SpecTypes are created for typing elements that have attributes (SpecObjects,
Specications, SpecRelations). New SpecTypes can be created by right-clicking
on the folder and selecting
New
Child. Through the same mechanism, attribute
denitions can be added to a SpecType. Attribute denitionsare typed. Select-
ingan element showsits properties inthe lower pane, where it can be congured.
Attributes must have a name and a Datatype. Some Attributes allow further
customization. The Datatype is selected from a dropdown. New Datatypes can
be created by right-clicking on the folder
Datatypes and selecting
New
Child.
Again, selecting a Datatype shows its properties in the lower pane, where it can
be congured. A Datatype should have at least the
long
name property set.
As an example, consider the Datatype Conguration shown in Figure 4.9.
The SpecType for \Requirements Type," which is applicable to SpecObjects, is
expanded. The SpecType has two Attributes, \Description" (String) and \Sta-
tus" (Enumeration). Status is selected, and in the pane below the mandatory
values,
Long
Name and
Type have been set. Further customization of the at-
tribute is possible, e.g. by converting it to a multi-valued Attribute by setting
the corresponding
ag to
true.