3.3. TUTORIAL 2: USE PRESENTATIONS
Quite an achievement|but there’s still a bit of a way to go. One improvement
we can make is simplifying data entry. Another is improving the visibility of
the descriptions. In the next part of the tutorial, we will address these issues.
3.3 Tutorial 2: Use Presentations
We will continue where we left o at the end of Tutorial 1 and we will assume
that you have ProR open with a model identical or similar to the one we created
In this tutorial we will introduce Presentations. Presentations are Eclipse
Plug-Ins that extend the functionality of ProR. Specically:
Presentations can change the way Attributes are rendered in the Speci-
Presentationscan change the way Attributesare editedin the Specication
Presentations can perform tasks in the background.
ProR comes with a number of standard presentations that we will introduce
in this tutorial.
3.3.1 ID Presentation
It would be nice if every SpecObject had its own unique ID. Actually, they do:
The unique ID is shown in the
tributes tab of the
View, if a
SpecObject is selected. But that ID is meant for machines and is not practical.
The ID Presentation allows the automatic creation of more user-friendly IDs.
Let’s create one.
Remember that Presentations are associated with Datatypes, not Attributes.
Thus, we rst have to create a new Datatype called \T
ID\. We then associate
that Datatype with the Attribute \ID". We described this process in the rst
tutorial. Figure 3.6 shows the conguration dialog, when all is done.
The next step is the association of the Datatype with the Presentation.
We open the Presentation Conguration and create a new Presentationfrom
the dropdown menu
tion..., of type \Id"Presentation. We associate
it with the newly created Datatype. After conguration, it would look asshown
in Figure 3.7.
Note that you can adjust the prex, count and the vertical alignment of the
Warning. At this point, the Presentation n does s not yet check forduplicates.
It simply grabs a new value from count, increments it and uses it. Also,
existing values are never overwritten.