Skip to main content



      Home
Home » Eclipse Projects » GEF » createChildEditPolicy() in HelloGEF example
createChildEditPolicy() in HelloGEF example [message #126578] Thu, 08 April 2004 05:04 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:how to use GEF and/or Draw2d to create bar-charts, pie charts, etc?
Next Topic:Palette Size: Where did I go wrong?
Goto Forum:
  


Current Time: Sun Jul 27 14:16:13 EDT 2025

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

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

Back to the top