Select Template Parameters Dialog
This dialog is for the selection of actual template parameters for the formal template parameters of a template.
Purpose
With the Select Template Parameters dialog , you assign actual template parameters to the formal template parameters of templates during the typing of attributes and operation parameters.
Prerequisites
If the type you have selected is a template, then you can access the dialog for selecting the actual template parameter using the Template Parameters... button in the Determine type for attribute dialog.
Structure
The header of the dialog displays the template with its formal template parameters. The first formal template parameter is selected. A classifier can now be selected from the list below as an actual parameter of the selected formal template parameter.
Opening the Dialog
Prerequisites
An attribute was created in the model.
A template exists in the model that can be assigned to the attribute as type.
Context
The actual template parameters are selected as part of the typing of an attribute or an operation parameter. Below, an attribute serves as an example.
How to proceed
-
Select an attribute in a diagram or in the details area.
The attribute's properties are shown in the Properties tool window.
-
Click on the
button in the Type property's row in the Properties tab.
The Determine type for attribute dialog appears.
-
In the list of types, select a type that is a template, i.e. that has formal template parameters.
The Template Parameters... button appears.
-
Click on Template Parameters....
The Select Template Parameters dialog appears.
Assignment of Template Parameters
Prerequisites
For each formal template parameter of the template, there is at least one classifier in the model that can be assigned to the relevant formal template parameter of the template.
Context
In the Select Template Parameters dialog, actual template parameters are assigned to the formal template parameters of the selected template.
The header of the dialog displays the template with its formal template parameters. When the dialog opens, the first template parameter is selected. You assign actual template parameters to the automatically selected formal template parameters one after another.
How to proceed
-
Enter a name component of the classifier you require so as to narrow the search for the list of classifiers available and click on
.
-
Select the classifier that you want to assign the first formal template parameter to as actual template parameter.
-
Click on Apply.
The selected classifier is adopted as the actual template parameter for the first formal template parameter.
If the classifier selected for the actual template parameter is not a template itself, then the second formal template parameter is selected in the dialog's header.
If the classifier selected for the actual template parameter is not a template itself, then the second formal template parameter is selected in the dialog's header.
-
Repeat steps 1 to 3 for the second formal template.
-
After selecting the last actual template parameter, click on Apply.
No further formal template parameter is selected in the header of the dialog. The Apply button is now displayed as deactivated.
-
Confirm with OK.