Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Compartment on link mapping
Compartment on link mapping [message #203515] Wed, 27 August 2008 09:53 Go to next message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
Hello,

exist a way to use a Compartment on Link mappings? I want to have a
litte rectangle on a connection. Now i want to fill this rectangle with
some contained elements.

Thanks in advance

Jörg Oelerink
Re: Compartment on link mapping [message #203652 is a reply to message #203515] Thu, 28 August 2008 11:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tobk42.gmx.de

Hello Jörg,

I don't know whether its possible to do it exactly the way you want to,
but you can graphically insert contained children of links. For doing
so, create a node mapping in the gmfmap for the contained element
without specifying a compartment on the top level. Next, create a link
mapping (for the link connecting the link with its child), with target
feature being the containment feature and the other fields left blank.
This way you can draw the link's children on the canvas and then draw
links from the link to its children (actually making them its children,
before this their containment is undefined).

Tobias



Jörg schrieb:
> Hello,
>
> exist a way to use a Compartment on Link mappings? I want to have a
> litte rectangle on a connection. Now i want to fill this rectangle with
> some contained elements.
>
> Thanks in advance
>
> Jörg Oelerink
Re: Compartment on link mapping [message #203668 is a reply to message #203652] Thu, 28 August 2008 13:14 Go to previous message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
Thanks for your help. This is a alternate way i used.

Tobias schrieb:
> Hello Jörg,
>
> I don't know whether its possible to do it exactly the way you want to,
> but you can graphically insert contained children of links. For doing
> so, create a node mapping in the gmfmap for the contained element
> without specifying a compartment on the top level. Next, create a link
> mapping (for the link connecting the link with its child), with target
> feature being the containment feature and the other fields left blank.
> This way you can draw the link's children on the canvas and then draw
> links from the link to its children (actually making them its children,
> before this their containment is undefined).
>
> Tobias
>
>
>
> Jörg schrieb:
>> Hello,
>>
>> exist a way to use a Compartment on Link mappings? I want to have a
>> litte rectangle on a connection. Now i want to fill this rectangle
>> with some contained elements.
>>
>> Thanks in advance
>>
>> Jörg Oelerink
Previous Topic:Adaptation of emf tree based editor
Next Topic:Bug 172003
Goto Forum:
  


Current Time: Sat Apr 20 08:56:47 GMT 2024

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

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

Back to the top