Bug 327626 - [package explorer][dnd] Apply Patch wizard could be invoked by dragging a URL and dropping in the PE
Summary: [package explorer][dnd] Apply Patch wizard could be invoked by dragging a URL...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 23:47 EDT by Prakash Rangaraj CLA
Modified: 2010-10-13 14:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).