Prev | Next |
Creating and Deleting Relationships
Having reviewed existing relationships on the Relationship Matrix, you can use the Matrix to quickly modify or delete those relationships and create others between the elements. This is a very useful facility for maintaining a large number of relationships in a short space of time. As you can filter for specific types of connector and source and target element, you can create a logical set of relationships without having to specify the type of each object every time.
Access
Ribbon |
Design > Package > Package/Matrix Start > All Windows > Design > Tools > Package Matrix |
Keyboard Shortcuts |
| Matrix |
Create a new relationship
Note that if the source element (that is, the owner) is locked and the 'Settings > Security > Administer > Apply Locks to Connectors' option is enabled, you cannot create new relationships on that element.
Step |
Action |
See also |
---|---|---|
1 |
In the 'Link Type' field, select the type of relationship you want to create, and in the 'Type' fields select the types of source and target element between which to create the relationships. |
|
2 |
Right-click on the empty square at the intersection of the appropriate source row and target column. You can select and operate on several squares (creating several relationships) at once. Either:
|
|
3 |
Select either the:
If the 'Direction' field is set to 'Both', you are offered the choice of creating the relationship to the Source element or to the Target element. A further submenu might display, listing any variations on the type of relationship you can create; in this case, click on the required type of relationship. |
Apply an Overlay to a Cell |
4 |
A connector of the selected type is created between the two elements, and the appropriate indicator displays in the matrix cell. |
Modify or delete a relationship on the Relationship Matrix
Step |
Action |
See also |
---|---|---|
1 |
Right-click on the required highlighted relationship cell on the matrix, and select the appropriate context menu option:
|
|
2 |
If you have selected 'Delete relationship', Enterprise Architect prompts you to confirm this action. Click on the . The 'Delete relationship' option is not available if:
|
Set Security Policy |
3 |
If you have selected one of the other options, modify the properties in the dialog fields as required. Click on the to save the changes. |
Apply an Overlay to a Cell Connector Properties Properties Dialog |