Add Java projects to classpath container org.eclipse.pde.core.externaJavaSearch#2270
Add Java projects to classpath container org.eclipse.pde.core.externaJavaSearch#2270trancexpress wants to merge 1 commit intoeclipse-pde:masterfrom
Conversation
|
Are there tests for this container? I'm not sure what to search for, I'm not finding any. |
From the naming and from the code it looks like it is intentional... So I think you should do some research what was the reason for this. At a minimum one need to revise the javadoc of the class (and possible other documentations as well). |
The project is used to be able to browse target platform code, search in it and so on. I'm sure its intentional, otherwise you woyld e.g. get double search results - one for the project in the workspace, one for the External Plug-in Libraries project. I'll see if I can find something in the git history, maybe there is a Bugzilla ticket. |
|
The source plug-in was omitted for: https://bugs.eclipse.org/bugs/show_bug.cgi?id=197817
With this PR, I don't see multiple matches for:
Unfortunately no test was added for the problem: https://bugs.eclipse.org/bugs/attachment.cgi?id=75349&action=diff I'm not sure how complicated a test is... I'll check if there are tests for the PDE plug-in container, maybe we can mimic those. |
…lJavaSearch The classpath container org.eclipse.pde.core.externalJavaSearch skips adding plug-ins if a respective project is found in the workspace. This can result in unexpected behavior when browsing code from the container, such as wrong syntax highlighting, navigation and search results. This change adjusts the classpath container to contain also projects found in the workspace. A test is also added for the initial bug fix, due to which workspace projects are skipped: https://bugs.eclipse.org/bugs/show_bug.cgi?id=197817 Fixes: eclipse-pde#2269
|
I added a test, unfortunately its quite slow... ~18 seconds on my laptop. Most of the time is spent indexing the container. |

The classpath container
org.eclipse.pde.core.externalJavaSearchskips adding plug-ins if a respective project is found in the workspace. This can result in unexpected behavior when browsing code from the container, such as wrong syntax highlighting, navigation and search results.This change adjusts the classpath container to contain also projects found in the workspace.
Fixes: #2269