Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:53 Go to next message
Jonathan Menzies is currently offline Jonathan MenziesFriend
Messages: 60
Registered: May 2020
Location: California
Member
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 23:11 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
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


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Sirius Desktop: Node creation as well as Edge creation? [message #1862212 is a reply to message #1862197] Fri, 17 November 2023 19:01 Go to previous message
Jonathan Menzies is currently offline Jonathan MenziesFriend
Messages: 60
Registered: May 2020
Location: California
Member
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: Tue Dec 03 21:17:49 GMT 2024

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

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

Back to the top