Skip to main content



      Home
Home » Eclipse Projects » Sirius » Sirius Desktop: Node creation as well as Edge creation?
Sirius Desktop: Node creation as well as Edge creation? [message #1862196] Thu, 16 November 2023 15:53 Go to next message
Eclipse UserFriend
Hey there,

I want to be able to create a node with a connected edge in the same event, using the node creation tool in the palette. But it seems this is not possible?

I also tried creating an edge creation tool that creates the node inside of it, however the edge creation tool does not allow me to select the canvas as a suitable target so that doesn't work either.

Is there anyway to do this?

I can kind of do it manually via services, and have done so by just instantiating the model elements that represent the link and node. However that results in some visual problems as the diagram representation of the node is created without the custom style info.

Kind Regards
Jonathan
Re: Sirius Desktop: Node creation as well as Edge creation? [message #1862197 is a reply to message #1862196] Thu, 16 November 2023 18:11 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

On your edge creation tool[1], in the advance tab, there are fields to define extra mapping for the source or the target of the edge.
This will allow to apply the edge creation tool on other kind of element. In the model operation of your tool, you will need to have some "if" operation to check the type of the source/target element and you can create the node that you want if it is missing to connect your edge.

Best regards,
Steve
[1] https://eclipse.dev/sirius/doc/specifier/general/ToolsSpecification.html
Re: Sirius Desktop: Node creation as well as Edge creation? [message #1862212 is a reply to message #1862197] Fri, 17 November 2023 14:01 Go to previous message
Eclipse UserFriend
Hey Steve,

Oh excellent, I must have missed it when I was looking around! That's exactly what I was looking for, managed to get it working.

Thanks for the help :)

Kind Regards
Jonathan
Previous Topic:Is there any way to run automated tests in Sirius?
Next Topic:customize the style of the bordered node
Goto Forum:
  


Current Time: Mon Jul 14 07:13:30 EDT 2025

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

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

Back to the top