Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Edges in containers
Edges in containers [message #1396180] Tue, 08 July 2014 00:46 Go to next message
Nigel Daniels is currently offline Nigel DanielsFriend
Messages: 40
Registered: May 2011
Member
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.

Thanks, Nigel
Re: Edges in containers [message #1396359 is a reply to message #1396180] Tue, 08 July 2014 07:39 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
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 Go to previous message
Nigel Daniels is currently offline Nigel DanielsFriend
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
Previous Topic:Dynamic path to Icon
Next Topic:Label decoration for files containing errors
Goto Forum:
  


Current Time: Thu Apr 25 00:56:47 GMT 2024

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

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

Back to the top