I am using a ViewerDropAdapter to support dragging an object to a Table. When the drop operation is complete I can get the object that the mouse was over when it was released but can't see a way to get the table index.
@Override
boolean performDrop(Object data) {
DropTargetEvent event = this.getCurrentEvent();
// Get table item that was the target
TableItem item = (TableItem) event.item;
// use the table item to look up the index
int tableIndex = item.getParent().indexOf(item);
return true;
}