What does MyDragSourceListener look like? What does your drop target
look like?
Take a look at the following articles:
http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.html
http://www.eclipse.org/articles/Article-Workbench-DND/drag_drop.html
"Thomas Piekarski" <Thomas.Piekarski.nospam@xxxxxx> wrote in message
news:d01f68$go9$2@xxxxxxxxxxxxxxxxxx
Hi.
I'm trying to drag from a jface Treeviewer to a gef editor.
I'm using the following snippet to add a drag source listener:
----
int dndOperations = DND.DROP_COPY | DND.DROP_MOVE;
Transfer[] transfers = new Transfer[] { TextTransfer.getInstance() };
viewer.addDragSupport(dndOperations, transfers, new
MyDragSourceListener(viewer));
----
If i start dragging a tree item, the method dragStart of the listener
gets called, but dragSetData is never called.
Am i doing something wrong? Is it a bug?
Greets and thanks
Btw. i am using eclipse 3.1M4