Hi,
I created a table and wanted to enable drag & drop on this table. I want to drag one row of this table and drop it onto another row in the same table.
It works in Swing but not in SWT/RAP. In SWT, the table does not let me drag the line.
Did I configure something wrong? Or is it simply a bug?
Has anyone experienced the same problem?
The code looks as below:
@Order(10.0)
public class Table extends AbstractTable {
@Override
protected int getConfiguredDragType() {
return TYPE_TEXT_TRANSFER;
}
@Override
protected int getConfiguredDropType() {
return TYPE_TEXT_TRANSFER;
}
@Override
protected TransferObject execDrag(List<ITableRow> rows) throws ProcessingException {
return new TextTransferObject("some text");
}
@Override
protected void execDrop(ITableRow row, TransferObject t) throws ProcessingException {
super.execDrop(row, t);
System.err.println("row: " + row + " t: " + t);
}
Thanks,
Matthias