[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Drag&Drop question
|
Hi,
Is it possible to turn a drag handled by a DragEditPartsTracker into a
(native) drag and drop operation?
In my GEF editor, I want to be able to move shapes around, but at the same
time, I would like to be able to drag shapes out of my editor into a drop
target, for example a JFace table viewer.
My current solution requires the user to press the shift key before starting
a drag&drop operation. If you implement DragSourceListener.dragStart() such
that it sets event.doit to false when the shift key is not pressed, the drag
will be handled as a normal move request. I'm not very happy with this
solution since it's not intuitive for the users to press the shift key
before starting a cross-editor drag.
Any ideas?
Thanks,
Boris.