Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Indefinite Child Referentiation
Indefinite Child Referentiation [message #197125] Tue, 15 July 2008 14:43 Go to next message
paolo russian is currently offline paolo russianFriend
Messages: 81
Registered: July 2009
Member
Hi there. I've got a few creation tools, most of them can be combinated in
multiple ways (A, B, C into A as well as A,B,C into B and C). I'm defining
the child compartments in the case A is included into A, and I've done it
with a normal child compartment like the other widgets' creation tools.

My problem is quite logical: if I want to let the user place B into A,
which is already into another A... I must define another compartment in
the second A, then again make another child, and then another
compartment... I cannot do it indefinitely!

Does it exist a way to make a self-child reference?
Re: Indefinite Child Referentiation [message #197199 is a reply to message #197125] Wed, 16 July 2008 07:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tobk42.gmx.de

Hi Paolo,

instead of creating a normal Child Reference with its own Node Mapping,
set the 'referenced child' attribute of the Child Reference to the
existing Node Mapping of A, B, or C.

Regards,
Tobias


paolo schrieb:
> Hi there. I've got a few creation tools, most of them can be combinated
> in multiple ways (A, B, C into A as well as A,B,C into B and C). I'm
> defining the child compartments in the case A is included into A, and
> I've done it with a normal child compartment like the other widgets'
> creation tools.
>
> My problem is quite logical: if I want to let the user place B into A,
> which is already into another A... I must define another compartment in
> the second A, then again make another child, and then another
> compartment... I cannot do it indefinitely!
> Does it exist a way to make a self-child reference?
>
Re: Indefinite Child Referentiation [message #197213 is a reply to message #197199] Wed, 16 July 2008 08:34 Go to previous message
paolo russian is currently offline paolo russianFriend
Messages: 81
Registered: July 2009
Member
thanks a lot, this makes sense and it worked in a snap. Can't say why I
was defining specific children features by default, probably got confused
;)
Previous Topic:How to find all gmf diagrams inside a project
Next Topic:Annotations on Diagrams
Goto Forum:
  


Current Time: Thu Sep 19 20:49:33 GMT 2024

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

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

Back to the top