Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Drag and Drop between two Trees
Drag and Drop between two Trees [message #663464] Tue, 05 April 2011 08:26
akoeck is currently offline akoeckFriend
Messages: 62
Registered: December 2010
Member
Hi there, I want to Drag and Drop some items between two trees.

In the sourceTree I've got all my items. The targetTree is empty.
So I want to drag the leaves which are columns from a table into the targetTree.
So when I drop my column into the targetTree I want that my Table (the parent Node of the column) is also dragged to the targetTree.
Also the ther columns should be dragged. In the targetTree the nodes are SWT.CHECK types. So that the dragged column should be checked. The others not.
Furthermore I want also be able to drag the table so the table is checked and all columns which also should be dragged are also checked in the targetTable.

How could I achieve that when I "dnd" a column that the parent and the other columns are also drag and dropped?
Also how could I achieve that the Data is also copied to the new tree? If i get it right the the TextTransfer only allows me to transfer the text of the node is this right?

Thanks in advance.
Previous Topic:Managing Menu Item Enable State
Next Topic:Browser evaluate always returns null IE7
Goto Forum:
  


Current Time: Wed Feb 26 08:26:51 GMT 2020

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

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

Back to the top