Community
Participate
Working Groups
Build Identifier: Given an AbstractTree widget with Drag'n'Drop enabled. When a node is selected, it can be dragged with the mouse. However, if no node is selected and the user clicks (and holds) a node, it is selected, but cannot be dragged in the same operation. The mouse button has to be released and re-pressed in order to enter the "drag" mode. This is annoying and unusual. There used to be a bug in Swing for the same topic [1]. The problem was fixed in 2005 [2] but it still persists in Scout. The SwingScoutTree should be improved to enable the correct behaviour. I will attach a patch proposal for the class org.eclipse.scout.rt.ui.swing.basic.tree.SwingScoutTree.P_SwingDragAndDropTransferHandler. I could not derive a reason, why the method "canDrag" should require a selection path to be present (over all, it's just about the PROP_DRAG_ENABLED flag), so I just removed that check. [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4521075 [2] http://weblogs.java.net/blog/shan_man/archive/2005/06/improved_drag_g.html Reproducible: Always
Created attachment 214373 [details] SwingScoutTree.java.patch
Thank you Beat for the patch. It has been applied to 3.8.1.
shipped with scout juno sr1