Tutorial 2: Use Presentations | ||
---|---|---|
![]() |
![]() |
|
Tutorial 1: Creating a basic ReqIF Model | Tutorial 3: Advanced SpecTypes |
We will continue where we left off with Tutorial 1 and we assume that you have ProR in front of you with a similar model.
In this tutorial we will introduce Presentations. Presentations are Eclipse Plug-Ins that extend the functionality of ProR. Specifically:
ProR comes with a number of standard presentations that we will introduce in this tutorial.
By default, text is not wrapped in cells. We will enable the Linewrap Presentation for the Description column.
To do this, we select ProR > Presentation Configuration.
The dialog shown has no entries. The dropdown menu "Select Action..." at the top allows us to create new Presentations. We select the "Linewrap" Presentation. This will create a new entry in the upper pane. Upon selecting it, we can configure it in the lower pane.
A Linewrap Presentation has only one configuration element, the Datatype. We select "T_String32k". This means that from now on, all Attributes of this type will be rendered with the Linewrap Presentation. Upon completion, the dialog should look like this:
Upon closing the dialog, the lines that are too long should be wrapped automatically. Also, upon clicking on a cell, the content is now wrapped in the editor.
It would be nice if every SpecObject had its own unique ID. Actually, it does (it is shown in the Property View, if a SpecObject is selected in the Outline View). But that ID is meant for machines and is not practical.
The ID Presentation allows the automatic creation of IDs. Let's create one.
Remember that Presentations are associated with Datatypes, not Attributes. Thus, we first have to create a new Datatype. We then associate that Datatype with the Attribute "ID". We described this process in the first tutorial. Here is a screenshot of the configuration dialog, when all is done:
The last step is, like before, to associate that Datatype with the Presentation.
We open the Presentation Configuration and create a new Presentation from the dropdown menu "Select Action...", this time of type "Id" Presentation. We associate it with the newly created Datatype. After configuration, the dialog should look as follows:
Note that you could adjust the prefix and the Count.
NOTE: At this point, the Presentation doesn't check yet for duplicates. It simply grabs a new value from count, increments it and uses it. Also, existing values are not overwritten.
![]() |
![]() |
![]() |
Tutorial 1: Creating a basic ReqIF Model | Tutorial 3: Advanced SpecTypes |