Drag And Drop Best practice ? [message #452091] |
Mon, 14 March 2005 09:43  |
Eclipse User |
|
|
|
Hi,
I use a Tree viewer as a Drag source and a Composite as a Drop target.
Users can so drag and drop tree nodes content.
I'm now asked to modify this by creating a new Composite (in a new Shell)
if the user drops the tree node outside the existing drop target.
So I have now one drag source and two distinct drop targets.
To determine whether the drop has been done on the dedicated Composite or
outside, I read the event.detail content in the dragFinished method, if it
is equal to DND.DROP_NONE, the drop has been done outside the Composite.
Is it a good way to do this ???
Thanks
Helene
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04267 seconds