createChildEditPolicy() in HelloGEF example [message #126578] |
Thu, 08 April 2004 05:04  |
Eclipse User |
|
|
|
Originally posted by: d.hufnagel.novatec-gmbh.de
Hi everyone,
I'm relatively new to GEF. When looking at the obove mentioned example,
I found that the "ResizableEditPolicy" of the HelloEditParts is
installed in their parent's XYLayoutEditPolicy.
My question is:
Why is the children's EditPolicy installed through the parent's
EditPolicy and not directly within the according edit part?
Thanks you for your help,
Dirk
|
|
|
Re: createChildEditPolicy() in HelloGEF example [message #126595 is a reply to message #126578] |
Thu, 08 April 2004 07:33  |
Eclipse User |
|
|
|
Originally posted by: nospam.gmx.net
Hello Dirh(k?)!
If the childs shall have different editPolicies,
install each directly in the child editParts.
If the childs shall have all the same EditPolicy,
you can install it through the parents editPolicy.
If you want to install another policy later, you only have to change one
line of code
with the effect that all child editparts will get the other editpolicy.
Just a question of clear and consequent design...
Regards, Ingo
"Dirh Hufnagel" <d.hufnagel@novatec-gmbh.de> wrote in message
news:c53487$i9j$1@eclipse.org...
> Hi everyone,
>
> I'm relatively new to GEF. When looking at the obove mentioned example,
> I found that the "ResizableEditPolicy" of the HelloEditParts is
> installed in their parent's XYLayoutEditPolicy.
> My question is:
> Why is the children's EditPolicy installed through the parent's
> EditPolicy and not directly within the according edit part?
>
> Thanks you for your help,
> Dirk
|
|
|
Powered by
FUDForum. Page generated in 0.03985 seconds