Skip to main content



      Home
Home » Eclipse Projects » Sirius » Create an specific node on startup
Create an specific node on startup [message #1792008] Mon, 09 July 2018 15:42 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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,
Previous Topic:Exception is being thrown when running plugin
Next Topic:AQL check if object has feature
Goto Forum:
  


Current Time: Wed Jul 23 11:00:48 EDT 2025

Powered by FUDForum. Page generated in 0.03178 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top