Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » element drawn in the compartment and outside compartment
element drawn in the compartment and outside compartment [message #200064] Mon, 04 August 2008 10:54 Go to next message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
I find if an element is mapped as child reference to a top reference,it
can't be drawn outside the compartment.That means if I want to draw that
element,I must first draw the container element.If there is a way to
define the .gmfmap that the child element can be drawn not only in the
compartment of container element but also outside the container?


Thanks!

ye
Re: element drawn in the compartment and outside compartment [message #200072 is a reply to message #200064] Mon, 04 August 2008 11:12 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Ye,

Create one more TopNodeReference with corresponding NodeMapping below. If
you'd like to reuse this node mapping in an existing ChildReference then
you can remove NodeMapping currently created below ChildReference and use
"referencedChild" property of ChildReference to point to the NodeMapping
below TopNodeReference.

-----------------
Alex Shatalin
Re: element drawn in the compartment and outside compartment [message #200270 is a reply to message #200072] Tue, 05 August 2008 06:46 Go to previous message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
Thanks a lot, I tried the first method and it works.


Regards
Ye
Previous Topic:package name in generated model code
Next Topic:Properties view add buttons
Goto Forum:
  


Current Time: Sat Jun 06 11:52:38 GMT 2020

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

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

Back to the top