Create an specific node on startup [message #1792008] |
Mon, 09 July 2018 15:42  |
Eclipse User |
|
|
|
Hello, friends.
I have a simple question:
How can I create some specific nodes automatically, when I start up a new diagram?
In my model, there are some objects that are required, always. All the time, the users must create them. I'd like to eliminate this operation for the users. That's it.
Regards.
|
|
|
Re: Create an specific node on startup [message #1792088 is a reply to message #1792008] |
Wed, 11 July 2018 03:52  |
Eclipse User |
|
|
|
Hi,
Directly inside the "Diagram Description" element in your VSM, you can create a "New Operation > Begin" element which will get executed when the diagram is first created. The operation is invoked in the context of the semantic element on which the diagram is created, so you can create your required elements there, and if you have defined mappings to display them they will appear on the newly created diagram (but that last part is not required).
Note that if the presence of these elements is an important semantic requirement, it may not be a good idea to rely on the creation a a Sirius diagram to create them.
Regards,
|
|
|
Powered by
FUDForum. Page generated in 0.03178 seconds