problems with XYlayout [message #148711] |
Fri, 31 August 2007 13:42 |
Eclipse User |
|
|
|
Originally posted by: biju_gopinathan.rediffmail.com
Hi friends
I am using the XYLayout class in a parent Node to place its child
node in any place. In this case, when we drag a child node outside the
parent node , child node will be disappear from the canvas ,
1 how to restrict child node only dragged on inside the parent figure?
thanks in
advance
biju
|
|
|
Re: problems with XYlayout [message #148727 is a reply to message #148711] |
Sat, 01 September 2007 07:53 |
Eclipse User |
|
|
|
Originally posted by: jr.joergreuter.ch
When I was working with an early milestone of GMF release 1 child objects
automatically "returned" to their original place when dropped outside of a
container . Now I work with release 2.0 and behavior is exactly as you
described.
I do not know what happened and it could be that I have changed something in
my code. I assume that a different command is returned from one of the edit
parts edit policies (Probably PRIMARY_DRAG_ROLE) during the Lifecycle of
DragEditPartsTracker. There is also a DragEditPartsTrackerEx Class that
overwrites getPrimaryDragEditPolicy.
Regards
J
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03486 seconds