|How to instantiate timelines in a sequence diagram using customised classes (from matamodel) [message #1839376]
||Fri, 19 March 2021 15:10
| Cristian Valenci
Registered: March 2021
Hello everyone :)|
So I'm currently trying to generate sequence diagrams using ecplise's plugin found in the following link:
For that matter, I've imported the Viewpoint's metamodel file, and its respective .edit and .editor file systems (i.e. the following projects).
- org.eclipse.sirius.sample.interactions.design (on runtime)
Since this sample projetc lets you instanciate "participants" defining its type using standard ecore classes, it should be possible to also define them using customised classes defined on an external metamodel.
For that matter I defined a simpe metamodel (i.e. for an automised gate) sourcing the interaction.ecore file and the metamodel ecore file both ways. However I'm still unable to define a participant type as any of my metamodel classes (i.e. GateDoor).
So, is there any method to instanciate a custom type instance/participant in a sequence diagram?
Thanks in advance,
[Updated on: Mon, 22 March 2021 20:32]
Report message to a moderator
|Re: How to instantiate timelines in a sequence diagram using customised classes (from matamodel) [message #1839790 is a reply to message #1839788]
||Mon, 29 March 2021 08:24
|| Maxime Porhel
Registered: July 2009
Location: Nantes, France
Hi Cristian, |
I understand that you are currently trying as a User (and not yet programmatically) to use your just created created your own metamodel to define GateDoor and some other concepts.
If you have modified the provided sample metamodel, you shoud then modify the ".design" project and its .odesign Viewpoint Specification model in order to provides new tools, and mapping/service modifications to let Sirius find and be able to display your kind of elements.
If you have cretaed a new metamodel, you will need to modifiy the .odesign and its plugin to register the new metamodel (plugins dependencies and properties fo the DiagramDescription), then you will have to create a model (manually, from the Reflective Ecore Editor) to be able to see elements until you have working tools in the VSM to create your elements in the model from the palette.
Sirius sample Sequenc editor based on the Siris Interaction sample metamodel, is only able to create Participants relying on the interaction::Participant class as the Participant creation tool from the VSM is defined to do this. If you want to change the type, you can create your own equivalent tool but with your metamodel class in the createInstance task.
Maxime Porhel - Obeo
Need training or professional services for Sirius?
Powered by FUDForum
. Page generated in 0.02075 seconds