|
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 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03453 seconds