Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Add drag and drop on a TableViewer
Add drag and drop on a TableViewer [message #458919] Tue, 26 July 2005 13:37
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
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
Previous Topic:DatePickerCombo as CellEditor
Next Topic:Scrolling composite
Goto Forum:
  


Current Time: Fri Apr 26 10:17:21 GMT 2024

Powered by FUDForum. Page generated in 0.02479 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top