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: 188
Registered: August 2013
Senior Member
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
Previous Topic:In table editing questions
Next Topic:Colour picker
Goto Forum:
  


Current Time: Sat Nov 29 01:50:26 GMT 2014

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

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