Community
Participate
Working Groups
The Open With menu is not presented for imported elements as the corresponding IFile is not resolved. The IFile is not found due to differences in case for the device. I have to double check but I am pretty sure the same test case worked fine on 3.1.
Requesting help here. Same test case works fine in 3.1. The "problem" is occuring as the case is different for the device in FileSystemResourceManager.allPathsForLocation between the testLocation and the location. So testLocation.relativize(location) "fails" and the path is not found. I know next to nothing about URI. I have attempted normalization of a URI but this had no impact on the case of the drive letter.
I'll investigate... can you give a little snippet that illustrates the problem? I.e., what core API call are you using?
The code that is failing is in AntUtil.getFileForLocation which uses: IFile[] files= ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation(filePath); on line 529.
I believe I have a fix... how can I verify this in the Ant tooling?
I would be happy to try out a patch and I will attach a test case to this bug report.
Created attachment 32687 [details] simpleCommon.xml
Created attachment 32688 [details] smipleCommon2.xml Bring these two files into Eclipse and place in the same folder. From simpleCommon.xml Outline, right clicking on externaltarget2 should present Open With
Thanks, that test works for me. Fix released to HEAD.