Community
Participate
Working Groups
Build ID: 6.0 Steps To Reproduce: I'm using ResourceLookup.findFilesForLocation(...) in a similar manner to how I use IWorkspaceRoot.findFilesForLocation(...). However in the case where I've just created a file using java.io.*, which I would like to refresh and make known to the workspace, the ResourceLookup method returns an empty array whereas the IWorkspaceRoot method doesn't... More information:
Hmm, I don't see a reasonable way of making this work. However, I hope that bug 233939 will be fixed before we release CDT 6.0. If it is fixed I will make ResourceLookup.findFilesForLocation() use the platform's version.
(In reply to comment #1) > Hmm, I don't see a reasonable way of making this work. However, I hope that bug > 233939 will be fixed before we release CDT 6.0. If it is fixed I will make > ResourceLookup.findFilesForLocation() use the platform's version. Ok. If it's not fixed in the platform a workaround might be to fall back to the platform method in the case that no IFiles are found in the lookupTree.
(In reply to comment #2) you are right we can do that.
Created attachment 122523 [details] use platforms findFilesForLocation as fall back
Fixed in 6.0 > 20090114.