Create Figures within figures like logic Example [message #222483] |
Wed, 06 September 2006 15:43 |
Eclipse User |
|
|
|
Originally posted by: tobias.brueggendick.prostep.com
Hello Experts,
i'm extending the shapeexample. At the moment i try to create a Figure which
contains other Figures. In this first case a diamond and a rectangle. At the
moment i don't find out how to create it. I'd a look at the logic-example
but i don't really understand how there it works. My Model contains the two
shapes but somehow the editpart don't really creates them.
Greetings Tobias
|
|
|
|
Re: Create Figures within figures like logic Example [message #222684 is a reply to message #222490] |
Thu, 07 September 2006 11:20 |
Eclipse User |
|
|
|
Originally posted by: tobias.brueggendick.prostep.com
So i'v got it. Thanks for your tips Nhu Le. I had read the programmers guide
but somehow it wasn't at least in my mind. I forgot something else which was
the reason why GEF don't displayed the figures inside. My EditPart for the
Container didn't had the Method getContentPane() so GEF was unable to create
the Child-figures.
Tobias
"Nhu Le" <nle.misc@gmail.com> schrieb im Newsbeitrag
news:edmr2m$ur0$3@utils.eclipse.org...
> In the editpart, you must have getModelChidren()
> In the part factory, you must handle everything that is returned from
> getModelChidren()
>
> If the figure doesn't show up, make sure the parent has appropriate layout
> manager installed.
>
> All this is detailed in the programmer's guide for GEF.
>
> Nhu Le.
>
> Tobias Br
|
|
|
|
Powered by
FUDForum. Page generated in 0.02340 seconds