Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableTreeViewer - drag and drop problem
TableTreeViewer - drag and drop problem [message #456847] Fri, 10 June 2005 21:16
No real name is currently offline No real nameFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,
I am trying to get drag and drop working on a TableTreeViewer control
and am having a problem. Using the following code:

// add drag support to viewer
Transfer[] transfer = new Transfer[] { TextTransfer.getInstance()};
viewer.addDragSupport(DND.DROP_COPY | DND.DROP_MOVE, transfer,
new MyDragListener(viewer));


I stepped through the code in the debugger, and the addDragSupport
method seems to work fine, the listener is added correctly. However no
dragging event occurs when I attempt to drag an item in the viewer.

As a test, I dropped the exact same code in to a TableViewer control I
am using (only changing the viewer param). In that case it worked - the
drag event was being generated.

Is there something special about a TableTreeViewer when it comes to
generating a drag event?

Thx,
evan
Previous Topic:How to get the screen resolution?
Next Topic:LwVCL Embedding
Goto Forum:
  


Current Time: Fri Apr 26 10:51:28 GMT 2024

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

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

Back to the top