Skip to main content



      Home
Home » Eclipse Projects » GEF » Forward a request to children edit parts?
Forward a request to children edit parts? [message #696133] Wed, 13 July 2011 06:29 Go to next message
Eclipse UserFriend
Hello!

I have a hierarchy of edit parts looking like the following:

Enterprise with Services as children which in turn has employees as children.
My figures is looking something like:

****************************************************************************
*-----------------------**************************************------------------------*
*-----------------------*------*************------------------------*------------------------*
*---Enterprise----------*------*--Employee----*--Service---------------*------------------------*
*-----------------------*------*************------------------------*------------------------*
*-----------------------**************************************------------------------*
****************************************************************************

In the Enterprise part i have a layouteditpolicy installed which handles adding of new Employees, a containereditpolicy to handle dragging of employees between enterprises and also a nonresizeable editpolicy.
In the Service part i have a containereditpolicy to handle dragging between different services.
In the Employee part i have a nonresizeable editpolicy to handle dragging of employees within a service.

My problem is that i dont get any move command in my nonresizeableeditpolicy that i have installed on my Employee edit part. The only request i get is add commands in the containereditpolices installed in my enterprise and service parts.

If i remove the Service part and place the employee directly inside the Enterprise I get the move command as expected. Feels like i have missed a middle step when i added the Service part.

Anyone got any suggestions of what im doing wrong?

[Updated on: Wed, 13 July 2011 07:36] by Moderator

Re: Forward a request to children edit parts? [message #696501 is a reply to message #696133] Thu, 14 July 2011 02:22 Go to previous message
Eclipse UserFriend
Solved, problem was that i also needed a layouteditpolicy in my service part.
Previous Topic:Right Mouse Button Menu
Next Topic:Initail position of a node & palette changed at runtime
Goto Forum:
  


Current Time: Sun Apr 20 10:22:57 EDT 2025

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

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

Back to the top