Community
Participate
Working Groups
1) If you move a file from the workspace to Windows Explorer, the file is moved from the file system but the navigator keeps showing the file until a refresh local is performed. 2) When DND a file from Windows Explorer to the Navigator, the icon used is the icon for move but the behaviour is a copy. NOTES: EJP (9/25/2001 2:38:00 PM) The msdn says the a application can use a optimized move, ie, instead of copy (by the target) and delete (by the source), the target can move the file. See urls for more details: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/shell_basics/datascenarios.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/shell_basics/clipboard.asp We need info/support from SWT. Did not want to change the code to do opimized because it should work on linux as well. Moving the SWT. Please move it back if changes on UI code are required.
I have modified the DragSource to look for SetData with CFSTR_PERFORMEDDROP. If the result of the rdag is DROP_NONE or DROP_COPY and the DragSource is called with a CFSTR_PERFORMMEDDROP value of DND_MOVE then the DragEnd event sent to the DragSource will have event.detail = DND.DROP_TARGET_MOVE. A value of DND.DROP_TARGET_MOVE in the event.detail field of the DragEnd event will indicate that an optimized move has occurred. That is, the drop target has moved the data (usually a file on the file system) and the drag source should clean up its presentation but does not need to delete the source.
PRODUCT VERSION: 135 - WinNT
Implemented on windows. Works in one direction only - ie when you copy from eclipse to the file explorer, the file explorer will cause an optimized move to occur. Eclipse just needs to handle DND.DROP_TARGET_MOVE in its drag source.