Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Subnode of Container(How to set relation, without relation edge)
Subnode of Container [message #1786856] Mon, 14 May 2018 10:55 Go to next message
Andreas Buchner is currently offline Andreas BuchnerFriend
Messages: 47
Registered: August 2017


I can drop a Sub(Node) and a Main (Container) on the Platform and connect them with a relation edge, so the program knows, that the Sub is a child of the Main Container.


I would like to drop the "createSub" directly in the Container and by doing that, have the relation clarified, without needing to connect them with the edge.

is that possible?
Re: Subnode of Container [message #1786857 is a reply to message #1786856] Mon, 14 May 2018 12:26 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 505
Registered: May 2011
Senior Member

In your Node Creation Tool "createSub" you will need to add a conditions on the "container" variable type, if the "container" variable is a MainTitle (container.oclIsKindOf(MainTitle) then in the CreateInstance operation the reference name will be "subtitles".
Are you sure about the part where you can create subtitles on your platform and then connect them on a MainTitle? That leaves you with a step where a subtitle as no main title and force you to handle the container type when creating a subtitles.
It would be simpler if the node mapping for Subtitles would be only contained in a MainTitle. Furthermore, do you really need a difference between MainTitle and Subtitle? If you only have a Title concept that is self contained it is even easier to set both the container mapping and the container creation tool.


Steve Monnier - Obeo
Need training or professional services for Sirius?
Previous Topic:How to increment an id feature automatically
Next Topic:How to integrate Sirius with Acceleo
Goto Forum:

Current Time: Sat Jan 23 19:04:08 GMT 2021

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

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

Back to the top