When a model package has models of different metamodels, it is possible that there are cross-model relations between elements in these models. Such relations can be shown and edited in a table. The Cross-model Relations reference table can be used to view existing cross-model relations, but you can also add new relations or remove exiting relations using the table.
On this page:
A new cross-model relation cross-reference table is generated. Example:
Example of a generated cross-model relation cross-reference table
You can modify the generated cross-reference table in two ways: by single clicking a single cell or by selecting multiple cells and then click the Check or Uncheck button. These buttons are only available if you have selected only one relation type before generating the table. You can easily select all cells in a row or column by clicking the row or column header.
By removing a check mark (X) in a cell, you can delete the specific relation cross-reference. By clicking in a cell and adding a check mark, you can create a cross-model relation cross-reference between two objects. This relation will not immediately be shown in any view. The relation will become visible in a view as soon as one of its end-points or the relation itself is dragged from the model browser into a view.
It is possible to display additional information in the Cross-Model Relation Cross-Reference table by using the different options at the bottom of the table window.
The title of the table indicates which additional information is shown.
Edit/show attribut: Instead of check marks (X), the description of a selected attribute of the relation is displayed. The attribute is chosen in the window that appears after you have selected the check box. The cell also gets a color. If the chosen attribute does not have a result, the cells remain empty.
Show why in cells: Instead of check marks (X), the names of the specific relations between the components are displayed in the table cells. If possible the name is shown, otherwise the relation type is shown.
Labels: Displays properties (attributes) of your own choice shown in labels. Instead of a check mark (X) or the description of the relation, the table cells show the description of the selected properties. The properties are selected in the window that appears after you have selected the check box.
Landscape colors: Displays properties (attributes) of your own choice shown in colors. To the right of the table a legend is shown containing the descriptions of the selected properties, each value with its own color. The table cells with check marks are displayed in the color corresponding to the related description in the legend. The properties are selected in the window that appears after you have selected the check box. If you combine this check box with the Labels check box, no legend is shown. Instead the labels are shown in the table cells in color.
By using the table's context menu you can change the information that is shown in the table, for example hide all empty rows and columns. To open the context menu, right click a random cell in the table. Which functions are available, depends on the location in the table where you click. For additional information about the available functions in the context menu, see Displayed table information.