Bug 4831 - DND not working properly (1GJYOZC)
Summary: DND not working properly (1GJYOZC)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Veronika Irvine CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-11 14:23 EDT by Rodrigo Peretti CLA
Modified: 2002-05-15 16:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Peretti CLA 2001-10-11 14:23:46 EDT
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.
Comment 1 Veronika Irvine CLA 2001-10-22 14:38:38 EDT
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.
Comment 2 DJ Houghton CLA 2001-10-29 16:41:58 EST
PRODUCT VERSION:
	135 - WinNT

Comment 3 Veronika Irvine CLA 2002-05-15 16:56:41 EDT
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.