Send a Drag and Drop between 2 node (from a Tree) [message #1774178] |
Wed, 11 October 2017 06:21  |
Eclipse User |
|
|
|
Hi everyone,
I would like to know if it is possible to use a drag and drop to drop an object between to node (from a Tree)?
And if it is possible, could you put an example here.
+ Item
--- drop here ---
+ Item
Thanks,
Antoine
|
|
|
|
|
Re: Send a Drag and Drop between 2 node (from a Tree) [message #1774194 is a reply to message #1774190] |
Wed, 11 October 2017 09:54  |
Eclipse User |
|
|
|
Oh, sorry, I misunderstood your question... I thought you were suggesting the location where I should drop my source code example ;)
My guess is that the functionality to 'insert' a dropped tree item is something that is implemented in the application based on the xy-coordinates of the DND events.
This would probably require a new method in AbstractSWTBot where the user could provide the specific xy-coordinates to be used.
If such a method is added, it should probably include parameters for the source coordinates (relative to its parent), the target coordinates (relative to display) and the drop operation.
If you would like to contribute a patch for this, we can review it and consider it for the next release.
Patrick
|
|
|
Powered by
FUDForum. Page generated in 0.09919 seconds