[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] TableTreeViewer - drag and drop problem

Hi,
I am trying to get drag and drop working on a TableTreeViewer control and am having a problem. Using the following code:


// add drag support to viewer
Transfer[] transfer = new Transfer[] { TextTransfer.getInstance()};
viewer.addDragSupport(DND.DROP_COPY | DND.DROP_MOVE, transfer, new MyDragListener(viewer));



I stepped through the code in the debugger, and the addDragSupport method seems to work fine, the listener is added correctly. However no dragging event occurs when I attempt to drag an item in the viewer.


As a test, I dropped the exact same code in to a TableViewer control I am using (only changing the viewer param). In that case it worked - the drag event was being generated.

Is there something special about a TableTreeViewer when it comes to generating a drag event?

Thx,
evan