Cooperate-Project / CooperateModelingEnvironment

Modeling environment for UML modeling by diversity teams (sighted and visual impaired people).
Eclipse Public License 1.0
6 stars 3 forks source link

Create wizard for cooperate sequence diagram with creation of required UML elements #88

Open sdkrach opened 7 years ago

sdkrach commented 7 years ago

In order to enable correct modeling of sequence diagrams in Papyrus a UML Collaboration object, which in turn contains the UML Interaction element has to be created. This is due to UML Lifeline represents property requiring entities of type ConnectableElement.

According to the discussion (https://www.eclipse.org/forums/index.php/t/447570/) as well as the behavior of IBM RSA, for each role in the interaction a property of the type of the interacting partner is created as child of the collaboration. For each lifeline the "represents" property is set to the respective child of the collaboration.

sdkrach commented 7 years ago

For reasons of simplicity the properties which reference Classifiers and/or Actors should be created as direct children of the Interaction. As a result we can do without creating shared Collaboration elements. In future work we can think about taking Collaborations into account for which we will then have to define an appropriate textual syntax.

This behavior is the default behavior of Papyrus (when dragging classes/actors onto the diagram) and Obeo UML Designer.