Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » can we have an elements for the main diagram elemnt(can we have an elements for the main diagram elemnt)
can we have an elements for the main diagram elemnt [message #1707648] Tue, 08 September 2015 11:20 Go to next message
Salwa Alzahmi is currently offline Salwa AlzahmiFriend
Messages: 37
Registered: June 2013
Member
Hi,

I am trying to build oddesigner for my ecore file. However, there are some elements that i cant have them in my diagram because of the way the ecore file is modeled:
1) My sirius Diagram Description represent the main domain containment class (e.x; basicfamily.Family). My question: is there a possibility to have a node in the graph that represent the Family feature.

2) For the containment features in my ecore , is there a was to represent the containment relation as a edge between the parent and children elements.


thanks
Re: can we have an elements for the main diagram elemnt [message #1707910 is a reply to message #1707648] Thu, 10 September 2015 13:09 Go to previous message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 174
Registered: October 2014
Senior Member
Le 08/09/2015 13:20, Salwa Alzahmi a écrit :
Hi
> Hi,
>
> I am trying to build oddesigner for my ecore file. However, there are
> some elements that i cant have them in my diagram because of the way the
> ecore file is modeled:
> 1) My sirius Diagram Description represent the main domain containment
> class (e.x; basicfamily.Family). My question: is there a possibility to
> have a node in the graph that represent the Family feature.
Yes. To represent the root element of your model.
- in your Diagram Description, set your root Type as Domain Class
- in your mapping, set your root Type as Domain Class and var:self as
"Semantic Candidates Expression". Here, self corresponds to your diagram
Domain class
> 2) For the containment features in my ecore , is there a was to
> represent the containment relation as a edge between the parent and
> children elements.
>
yes of course.
- define both your parent and children Node mapping
- define a relation based edge between these two mappings. See
documentation [1]
>
> thanks
>
Regards
Laurent

[1]
http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.sirius.doc%2Fdoc%2Fspecifier%2Fdiagrams%2FDiagrams.html&anchor=edges


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:No RCPTT Test cases found pop up displayed when running a simple Java Class in Eclipse
Next Topic:Keep tool selection
Goto Forum:
  


Current Time: Wed Jan 27 09:56:25 GMT 2021

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

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

Back to the top