| Summary: | Create linked resources using drag-and-drop within project explorer | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | James Blackburn <jamesblackburn+eclipse> |
| Component: | cdt-core | Assignee: | Anton Leherbauer <aleherb+eclipse> |
| Status: | RESOLVED FIXED | QA Contact: | Doug Schaefer <cdtdoug> |
| Severity: | normal | ||
| Priority: | P3 | CC: | aleherb+eclipse, daniel_megert, serge |
| Version: | 7.0 | ||
| Target Milestone: | 8.0 | ||
| Hardware: | PC | ||
| OS: | Linux-GTK | ||
| Whiteboard: | |||
|
Description
James Blackburn
In 3.6, you can use CNTL while dragging files within the Project Explorer to have the 'File Operation' dialog appear, and effectively have the option to create link resources. You can also drag and drop files on a virtual folder, which will create linked resources automatically. Those 2 features didn't make it in the JDT Package Explorer for 3.6, though. reassigning to JDT/UI Hmmm. We were doing this in the project explorer (CDT base product without jdt installed). Ctrl just created a copy without popping up the choice dialog we used to get... Will have to dig a bit deeper -- is it possible for other CNF contributors to affect this? There are a few other features -- subclipsr, pydev, epic, ccrc installed too. Ok it seems to be something to do with the content contributed to the view by CDT. Steps to reproduces: - Create CDT Helloworld project - In Project explorer: ctrl-drag helloworld/src/helloworld.c to helloworld/. File is copied, no dialog presented. Interestingly if you create a project without the CDT nature, the above works. Also dragging from a no-nature project to the CDT project works too. The only thing that doesn't work is ctrl-dragging within or between CDT projects. Disabling the 'CDT Elements' content provider makes ctrl-drag behave as expected. Given that this works between non-CDT and CDT project, I wonder whether this is a CDT problem or a CNF problem? Moving to CDT: its CNavigatorDropAdapterAssistant getting invoked (rather than ResourceDropAdapterAssistant). Fixed in HEAD. Works in the same way as ResourceDropAdapterAssistant now. *** cdt cvs genie on behalf of aleherbau *** Bug 319405 - Create linked resources using drag-and-drop within project explorer [*] CNavigatorDropAdapterAssistant.java 1.14 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/navigator/CNavigatorDropAdapterAssistant.java?root=Tools_Project&r1=1.13&r2=1.14 |