Community
Participate
Working Groups
Build Identifier: I20110127-2034 Dragging a file from one project folder to another will create an animation (of a semi-transparent image of the file) to move from the destination location to the source location, which is the opposite of the file move. This animation is counter-intuitive and appears that the drag operation failed. In Package Explorer no animation exists, this would probably the easiest fix for the Project Explorer. Reproducible: Always Steps to Reproduce: 1. In Project Explorer: Create two project folders, A and B. 2. Create a file in A. 3. Drag file to B. 4. Animation appears of a file moving from B to A, opposite of what you did.
Hmm, this could be a CNF problem. Especially since the Package Explorer behaves differently.
It is definitely a CNF problem.
As per Lakshmi, this feedback happens when the drop operation fails. In SWT terms DropTargetEvent.detail field is set to DND.DROP_NONE inside the DropTargetListener.drop() method. ResourceDropAdapterAssistant.handleDrop() method does that at line no 218. Commenting that fixes this bug. Francis, Is that the right solution?
(In reply to comment #3) > As per Lakshmi, this feedback happens when the drop operation fails. In SWT > terms DropTargetEvent.detail field is set to DND.DROP_NONE inside the > DropTargetListener.drop() method. > > ResourceDropAdapterAssistant.handleDrop() method does that at line no 218. > Commenting that fixes this bug. > > Francis, > > Is that the right solution? It seems right to me. In looking at the code I can't understand why that line is there, and I put it there in response to fixing bug 258017. I will remove it and retest DnD everywhere tomorrow so we can have this fixed for M7. I can test on Linux, Mac and Windows so that should cover it. If that works, I will go ahead and commit the change.
Created attachment 193780 [details] Patch Here is the patch you propose (in case we want to backport this)
Tested on Windows, Mac OSX, Linux Released to HEAD 3.7M7 Thanks to Prakash for the fix.