Bug 200682

Summary: [dnd] Cannot drag&drop *.c files from CDT Projects in project explorer to RSE
Product: [Tools] Target Management Reporter: Martin Oberhuber <mober.at+eclipse>
Component: RSEAssignee: Martin Oberhuber <mober.at+eclipse>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P1 CC: kjdoyle, wbprio
Version: 2.0Flags: mober.at+eclipse: review? (dmcknigh)
Target Milestone: 2.0.1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 192704    
Bug Blocks: 200557    
Attachments:
Description Flags
Patch to fix dnd of elements just adaptable to IResource (like CDT) none

Description Martin Oberhuber CLA 2007-08-21 09:48:12 EDT
+++ This bug was initially created as a clone of Bug #192704 +++

From bug 192704 comment 13:

Drag&Drop fails for *.c / *.h files in CDT projects. In that case, the file is simply not transferred, no error message is logged. Getting this to work is very
import for our product!

To reproduce:
* Install CDT 4.0 (Help > Software Updates > Find and Install > New Features >
  Europa Discovery Site > C/C++)
* File > New > C Project
* Accept the Defaults
* File > New > Source Folder, name="src"
* File > New > C File, name="foo.c"
* Drag & Drop foo.c from project explorer into RSE System View, 
  Local Files/My Home/aatmp

The file is not transferred.
Comment 1 Martin Oberhuber CLA 2007-08-21 09:52:15 EDT
Created attachment 76530 [details]
Patch to fix dnd of elements just adaptable to IResource (like CDT)
Comment 2 Martin Oberhuber CLA 2007-08-21 09:53:58 EDT
Fix committed:

[200682] Fix drag&drop for elements just adaptable to IResource, like CDT elements
   SystemDNDTransferRunnable.java  1.12

Please review.