Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Table drag & drop
Table drag & drop [message #1279138] Fri, 28 March 2014 09:33
Matthias Nick is currently offline Matthias NickFriend
Messages: 197
Registered: August 2013
Senior Member
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:

        public class Table extends AbstractTable {

          protected int getConfiguredDragType() {
            return TYPE_TEXT_TRANSFER;

          protected int getConfiguredDropType() {
            return TYPE_TEXT_TRANSFER;

          protected TransferObject execDrag(List<ITableRow> rows) throws ProcessingException {
            return new TextTransferObject("some text");

          protected void execDrop(ITableRow row, TransferObject t) throws ProcessingException {
            super.execDrop(row, t);
            System.err.println("row: " + row + " t: " + t);

Previous Topic:In table editing questions
Next Topic:Colour picker
Goto Forum:

Current Time: Fri Jul 10 11:16:00 GMT 2020

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

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

Back to the top