Community
Participate
Working Groups
The workspace source locator will not find source in secondary package fragments. For exmaple, if there are two package fragments "x" in two projects A and B, and we are looking for "Foo.java" which is defined in project B - Foo will not be found if project A is seached first.
The workspace source locator is deprecated. Martin, should the Eclipse launcher be using the ProjectSourceLocator instead?
We should have a SourceLocator taking an array of projects (ordered).
Fixed
Please verify
This was not fixed. The problem was not multiple fragments between different projects - the problem was > 1 fragment in the same project in different source folders/package fragment roots. Fixed again. The fix is not as efficient as it could be, but it should hold for now. The current implementation finds all package fragments in the workspace with a given name, and then searches for a type within the fragments. It would be better to do the search top down and bail on the first hit (to avoid searching for all package fragments).
Sent patch to Jerome and Olivier. Please verify.
It's worse than before: I don't see any source now. To reproduce: 1. Launch Eclipse using the Eclipse launcher under debug. 2. Suspend the main thread 3. Select the OS.WaitMessage() stack frame Observe: No source is displayed. Note my project's locations are all inside my workspace.
The workspace source locator is not used anymore. Jerome confirmed (email) that it's working now. 11025
Verified.