Community
Participate
Working Groups
Build Identifier: 3.2 Drag an RSE resource and drop onto eclipse IFile causes error "RSEG1003U An unexpected exception has occurred". For example, if the drop target is file1.txt in folder1 in project1, the following error message dialog is displayed: Dialog title: RSEG1003U Message: An unexpected exception has occurred Message in Details field: Resource '/project1/folder1/file1.txt' does not exist. Reproducible: Always Steps to Reproduce: 1. In Remote Systems view, expand Local system > Local Files and select a file (or select a remote resource. This error seems to occur with remote resource too.) 2. Drag the file and drop onto a file in Eclipse Navigator view
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