Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » multiple diagram elements for the same domain class
multiple diagram elements for the same domain class [message #1801632] Thu, 24 January 2019 00:03 Go to next message
PETROS SOURSOS is currently offline PETROS SOURSOSFriend
Messages: 4
Registered: September 2018
Junior Member

Is it possible to have multiple diagram elements for the same domain class?
I have a domain class that I want to represent as a node or container depending
on the type of some attribute. But when I create the node, for example, a container is created automatically.

Thank you.
Re: multiple diagram elements for the same domain class [message #1801683 is a reply to message #1801632] Thu, 24 January 2019 16:49 Go to previous message
Julien Dupont is currently offline Julien DupontFriend
Messages: 172
Registered: July 2009
Senior Member

Yes it's possible and you must define a Precondition Expression in the advanced tab, or filter in the Semantic Candidates expression if you can in your case.
In your case if I understand correctly your need you can do a ->select(a | a.haveChildren = false) for the nodes and ->select(a | a.haveChildren) for the containers. In this case you have a node if this element doesn't have children and a container otherwise.

Previous Topic:getting resource malformed URL exception while loading the model
Next Topic:How to auto create unique identifier for instances?
Goto Forum:

Current Time: Tue Mar 09 04:46:11 GMT 2021

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

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

Back to the top