Rajib Deka
Rajib Deka

Reputation: 551

eclipse GEF DnD issue

I am facing a strange issue related to GEF based DnD in one of our RCP based application. I am trying to drag an item from a JFace based tree to another windows application (3rd party) and due to some reason it is not working. However if I drag and drop a SWT based table item it works and also the tree item can be dropped to notepad ot other such apps. We are facing issue only with that 3rd party app (no access to logs), what could be going wrong?

In a very high level code looks like below,

Listener added on tree view page

treeviewer.addDropTargetListener(new TransferDropTargetListener(...));

The listener public class TransferDragSourceListener extends AbstractTransferDragSourceListener {

Data set

@Override
public void dragSetData(DragSourceEvent event) {
.... some code goes here and then I set the data...
event.data = someStringValue;
}

Upvotes: 0

Views: 31

Answers (0)

Related Questions