Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Papyrus/Mars Work Description/Improvments/Create Relationship in Model Explorer

Create relationships in model explorer

The model explorer has a customizable menu explorer to create new elements in the model. However, this menu allows to create only "node" elements, e.g. elements that are not relationship. The goal of this improvement is to allow the creation of relationships inside the model explorer.

The purpose of this enhancenment is to make it possible to easily create directed relationships in the model explorer.

Relationships are created by right clicking the element to use as source. In the context menu (under a 'New Relationship' sub menu) only the relationships that can have the selected element as source should be listed. Bug425565 img1.png

When one of the relationship are selected a dialog is displayed showing the possible targets to set. Only elements that can be set as target for the selected relationship should be displayed.

Bug425565 img2.png

The result is a relationship with the element selected in the model explorer as source and the selected target element as target. Note, that if the element selected in the model explorer cannot be the container for the relationship a new container is calculated. In the example below the parent package (the Model element) is the container since dependencies cannot be contained in a class.

Bug425565 img3.png

Bugzilla

The main bugzilla item tracking progress of this feature is

Back to the top