Add drag and drop on a TableViewer [message #458919] |
Tue, 26 July 2005 09:37 |
Eclipse User |
|
|
|
Hi !
I have a TableViewer, filled with some custom objects. I want to enable
drag and drop on the items so that the user can choose some of them and
put them in another table.
I've had a look at the two articles on www.eclipse.org/articles and I
have built my own transfer type to transfer my objects. The problem now
is that I don't know how to tell the TableViewer to enable drag&drop on
its items.
Do I have do to it globally (tableViewer.addDragSupport()) ? In that
case, how can I access the tableItem in the dragSetData() method ? Or do
I have to put all those things in my contentProvider ?
Thanks for help...
Vincent
|
|
|
Powered by
FUDForum. Page generated in 0.11036 seconds