Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 310277

Summary: Revert the Navigator support of DROP_LINK
Product: [Eclipse Project] Platform Reporter: Serge Beauchamp <serge>
Component: UIAssignee: Serge Beauchamp <serge>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.6Flags: daniel_megert: review+
Target Milestone: 3.6 RC1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 302441    
Attachments:
Description Flags
Patch
none
Additional fix daniel_megert: review+

Description Serge Beauchamp CLA 2010-04-23 09:21:50 EDT
The Navigator view was changed to change the dropOperation to DROP_LINK, this need to be reverted until Bug 302441 is resolved.
Comment 1 Serge Beauchamp CLA 2010-04-23 09:22:21 EDT
Created attachment 165909 [details]
Patch
Comment 2 Serge Beauchamp CLA 2010-04-23 09:22:46 EDT
Now fixed on head.
Comment 3 Dani Megert CLA 2010-04-23 10:03:36 EDT
Serge, I quickly tested the patch and something still looks wrong: if I move a file from the OS explorer over a folder in the Navigator I get a [+] (good) but when I then press the Shift modifier I get DND.MOVE feedback but it should remain [+]. When I then drop, it doesn't move but shows the dialog (showing the dialog is good but the feedback should be DND.COPY).
Comment 4 Serge Beauchamp CLA 2010-04-23 13:37:39 EDT
Created attachment 165940 [details]
Additional fix

now doesn't accept move or link drop operation, as before.
Comment 5 Serge Beauchamp CLA 2010-04-23 13:38:29 EDT
(In reply to comment #3)
> Serge, I quickly tested the patch and something still looks wrong: if I move a
> file from the OS explorer over a folder in the Navigator I get a [+] (good) but
> when I then press the Shift modifier I get DND.MOVE feedback but it should
> remain [+]. When I then drop, it doesn't move but shows the dialog (showing the
> dialog is good but the feedback should be DND.COPY).

Thanks pointing it out.

It now behaves as it used to - change the drop to DND.DROP_NONE in such case.
Comment 6 Dani Megert CLA 2010-04-25 11:39:06 EDT
I didn't check the code but when I try the scenario from comment 3 it still shows MOVE feedback after pressing Shift and moving around.
Comment 7 Serge Beauchamp CLA 2010-05-11 09:47:26 EDT
(In reply to comment #6)
> I didn't check the code but when I try the scenario from comment 3 it still
> shows MOVE feedback after pressing Shift and moving around.

It looks fine to me.  When I hold <shift> while dragging, it turns to the 'invalid drop operation' cursor, as it used to do.

Note that the 'Additional fix' patch isn't committed on head yet.

Can you please review it?  Thanks,
Comment 8 Dani Megert CLA 2010-05-11 11:39:01 EDT
>It looks fine to me.
To me now too. Not sure what happened before.

+1 for RC1.
Comment 9 Serge Beauchamp CLA 2010-05-11 12:26:42 EDT
Thanks, now committed to head.
Comment 10 Dani Megert CLA 2010-05-17 06:36:03 EDT
Verified in N20100516-2000.