Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableTreeViewer - drag and drop problem
TableTreeViewer - drag and drop problem [message #456847] Fri, 10 June 2005 17:16
Eclipse UserFriend
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: Mon Nov 03 10:47:59 EST 2025

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

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

Back to the top