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

Bug 119556

Summary: fix task list drag and drop
Product: z_Archived Reporter: Mik Kersten <mik.kersten>
Component: MylynAssignee: Mik Kersten <mik.kersten>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: shawn.minto, steffen.pingel
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows All   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Mik Kersten CLA 2005-12-06 22:18:15 EST
Need to drag to root, betwee items, etc.
Comment 1 Mik Kersten CLA 2005-12-06 23:49:13 EST
Done.
Comment 2 Mik Kersten CLA 2008-02-15 11:49:27 EST
Steffen: Shawn noticed that dragging tasks onto things that accept files wasn't always working (e.g. for email message). That's bugged me in the past too, and it turns out it is because we were sending both a FileTransfer and a TextTransfer, and the text transfer was being chosen.  Previously I had tested with Skype, which will choose the FileTransfer over the TextTransfer.  We now no longer drag out a text transfer in order to avoid this.  See the context for the current code since you've been working in this area.
Comment 3 Mik Kersten CLA 2008-02-15 11:49:30 EST
Created attachment 89854 [details]
mylyn/context/zip
Comment 4 Steffen Pingel CLA 2008-02-15 14:07:15 EST
If at all possible I would like to make the type of transfer depend on the operation (i.e. Link, Copy, Move) so we could support text as well as files. Could you update the documentation:

http://wiki.eclipse.org/Mylyn/UI_Design#Task_Drag_.26_Drop

The modes that are not supported are in italic.
Comment 5 Eugene Kuleshov CLA 2008-02-15 14:38:03 EST
I thought it used to be possible to drag tasks into the text area in the email window or in the browser, so it would copy the textual representation there (like copy task details and then paste it there). With recent improvements I am getting getting text like this entered instead:

file:///C:/dev/workspace/.mylar/temp/https%253A%252F%252Fbugs.eclipse.org%252Fbugs-11955663750.xml.zip 

Though Mik's changes resolved issues with dragging task to email window to create corresponding attachment.
Comment 6 Mik Kersten CLA 2008-02-19 01:26:15 EST
Eugene: what you are seeing is what I described at the end of comment#2.  We no longer send the text transfer because it makes it too hard or impossible to attach the file.  The work-around is to use "Copy Details" instead.

Steffen: how would you change this based on operation?  While I rely on them frequently, my sense is that very few users know about using the modifier keys for DnD.  We can implement this, but my sense is that 98% of the problem is getting the default right.
Comment 7 Steffen Pingel CLA 2008-02-19 01:57:16 EST
It might be hard to find a good default that will make everybody happy. My sense is that URLs are the most universal way of sharing references to tasks at this point and should be preferred over files. I can see that it is very convenient to share tasks through zipped task list files but I would assume that only few people know how to handle these.

Making the operation depend on a key modifier would certainly be an advanced operation. Unfortunately - at least from what Shawn and I could tell from a quick look at the APIs - changing the supported drag types based on a key modifier is not supported.