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

Bug 258840

Summary: allow to drag attachments out of the attachments section
Product: z_Archived Reporter: Eugene Kuleshov <ekuleshov>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P4 CC: mik.kersten, steffen.pingel, tomasz.zarna
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
non-working patch
none
mylyn/context/zip none

Description Eugene Kuleshov CLA 2008-12-15 12:30:50 EST
It would be handy to be able to drag attachments out of attachments section, e.g. to the package explorer view in the same Eclipse workbench or to a separate one, as well as to an external folder.
Comment 1 Steffen Pingel CLA 2009-06-03 13:13:13 EDT
*** Bug 278924 has been marked as a duplicate of this bug. ***
Comment 2 Steffen Pingel CLA 2009-08-20 19:16:16 EDT
Created attachment 145204 [details]
non-working patch
Comment 3 Steffen Pingel CLA 2009-08-20 19:16:49 EDT
Created attachment 145205 [details]
mylyn/context/zip
Comment 4 Steffen Pingel CLA 2009-08-20 19:20:55 EDT
Unfortunately there is no straight forward solution to this problem: The drag source has to set the data on the DragSourceEvent before the drag is executed. The actual transfer is handled by the drop target. None of the SWT transfer types support remote resources though and copying attachments to the local file system during a drag is not an option since it would block the UI thread and drag operation.

We may be able to make this work for LocalSelectionTransfers and some sort of implementation of IResource that does not actually correspond to a local resource but I haven't looked into that any further.
Comment 5 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn