Bug 327626

Summary: [package explorer][dnd] Apply Patch wizard could be invoked by dragging a URL and dropping in the PE
Product: [Eclipse Project] JDT Reporter: Prakash Rangaraj <prakash>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, markus.kell.r
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Prakash Rangaraj CLA 2010-10-12 23:47:44 EDT
Drag & Drop of a test result URL into JUnit view will populate the results. It is a nice feature. Likewise, we could probably add a feature where, someone can drag URL for the patch and drop it in the PE, which could invoke the Apply Patch wizard. 

Right now, I open the URL in the browser, copy the whole text and then paste it in the PE.
Comment 1 Markus Keller CLA 2010-10-13 14:55:47 EDT
In the JUnit view, the potential meaning of a dropped URL is quite limited, so it's OK to assume it's a test result file.

In the Package Explorer, the space is a lot more open. The URL could contain a patch, a test result file, a text file that you'd want to open in an editor, etc. Another possible implementation could be to download the file and save it if the drop target is a container.

Nevertheless, the enhancement request is appealing. If we implement it, then we should make sure that the Package Explorer controls the downloading of the URL's contents (such that we can add more implementations later that work on the downloaded data).

I'll keep this bug for the Package Explorer, but you might want to file another bug to add DND (and Paste) support for URLs to the Synchronize view (which is similarly limited in scope as the JUnit view).