|
Re: Edges in containers [message #1396359 is a reply to message #1396180] |
Tue, 08 July 2014 07:39 |
|
Hi Nigel
Le 08/07/2014 02:46, Nigel Daniels a écrit :
> Hi,
>
> my background is working with GMF but I am now exploring and enjoying
> Sirius. One thing I have in a model I am trying to represent is edges
> that only exist within a container. Is it possible to define these in
> Sirius? I can see how I specify sub nodes but cannot see a mechanism for
> describing sub edges.
In Sirius, Edge Mapping are defined as children of a Layer [1], the
corresponding edges will be direct children of the diagram (Sirius
internal model and GMF notation model).
But you can simply define an edge that only exist in a container : if
your source and target mappings are defined in (or reused from) the
corresponding Container Mapping and if you use the different interpreted
expressions (semantic candidates, precondition, source finder
expression, target finder expression - note that you have two different
Edge Mapping kind [1]) to compute only edges within a container. You can
also restrict the possibility in the Edge Creation tool (then even if
you are not strict on the mapping, the user will not have the capability
to create edges between elements of different containers).
> Thanks, Nigel
Regards,
Maxime
[1]
https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#edges
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Edges in containers [message #1397605 is a reply to message #1396359] |
Thu, 10 July 2014 00:08 |
Nigel Daniels Messages: 40 Registered: May 2011 |
Member |
|
|
Hi Maxime,
thanks for the advice, I'll try this out as soon as I can.
All the best, Nigel
On 08/07/2014 00:39, Maxime Porhel wrote:
> Hi Nigel
>
> Le 08/07/2014 02:46, Nigel Daniels a écrit :
>> Hi,
>>
>> my background is working with GMF but I am now exploring and enjoying
>> Sirius. One thing I have in a model I am trying to represent is edges
>> that only exist within a container. Is it possible to define these in
>> Sirius? I can see how I specify sub nodes but cannot see a mechanism for
>> describing sub edges.
>
> In Sirius, Edge Mapping are defined as children of a Layer [1], the
> corresponding edges will be direct children of the diagram (Sirius
> internal model and GMF notation model).
>
> But you can simply define an edge that only exist in a container : if
> your source and target mappings are defined in (or reused from) the
> corresponding Container Mapping and if you use the different interpreted
> expressions (semantic candidates, precondition, source finder
> expression, target finder expression - note that you have two different
> Edge Mapping kind [1]) to compute only edges within a container. You can
> also restrict the possibility in the Edge Creation tool (then even if
> you are not strict on the mapping, the user will not have the capability
> to create edges between elements of different containers).
>
>> Thanks, Nigel
>
> Regards,
>
> Maxime
>
>
> [1]
> https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#edges
|
|
|
Powered by
FUDForum. Page generated in 0.03478 seconds