| Summary: | Dropping resource onto Eclipse IFile causes RSEG1003U unexpected exception | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] Target Management | Reporter: | Kenya Ishimoto <kenya> | ||||||
| Component: | RSE | Assignee: | David McKnight <dmcknigh> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Martin Oberhuber <mober.at+eclipse> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | dmcknigh, jwsnyder | ||||||
| Version: | 3.0 | ||||||||
| Target Milestone: | 3.3 M3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 328157 | ||||||||
| Attachments: |
|
||||||||
|
Description
Kenya Ishimoto
Created attachment 181196 [details]
Error log
The attached file is errors in .matadata/.log file
We think, to be consistent with Eclipse, dropping onto a file should be treated as drop onto its parent container. In Navigator view, it works so. At least the "unexpected exception" error should be prevented. This problem affects our customized view (z/OS Projects view of Rational Developer for System z) and causes the same error. When a resource is dropped onto a remote resource, SystemDNDTransferRunnable#runInWorkspace calls transferRSEResources method and we can handle the case in our target adapter. However, when a resource is dropped onto an Eclipse IResource, SystemDNDTransferRunnable.runInWorkspace calls transferRSEResourcesToEclipseResource, and we cannot prevent the error. Created attachment 181198 [details]
patch to use parent when target is a File
This patch should resolve this. Could you try it out to confirm? I've committed my change to the HEAD stream. Please let me know if you need a backport to RSE 3.2.2. David, I have tried the attached patch in my runtime-workspace, and confirmed that it resolves the problem in both Navigator view and our view (z/OS Projects view). The dropped resource was copied to its parent folder. Yes, please backport to RSE 3.2.2 |