| Summary: | PDE do not react to changes in org.eclipse.pde.core.prefs for BUNDLE_ROOT_PATH | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Christoph Laeubrich <laeubi> |
| Component: | UI | Assignee: | PDE-UI-Inbox <pde-ui-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | wellmann.hannes1 |
| Version: | 4.23 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/191246 https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/192077 https://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=fb5ad5bf72c88c5f7bf6076abadbc5e488e897be https://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=15d4491246a0bc3eb19f874a4cd2774a1bdc2269 |
||
| Whiteboard: | |||
|
Description
Christoph Laeubrich
@Hannes do you like to take a look? I'm not sure if this is too late for this release, but it produces hard to understand error when using m2e+felix bundle plugin because one needs to restart eclipse sometimes to get a bundle recognized. Once PDE got track of the changed location, everything works smoothly ... The problem here is that the WorkspacePluginModelManager does not react to changes in the .settings/org.eclipse.pde.core.prefs file at the moment. Besides that I noticed (a while ago already) that changes in a MANIFEST generated by Felix are also not recognised by the WorkspacePluginModelManager, because in its super-class WorkspaceModelManager the method visit(IResourceDelta) ignores derived resources. In this case of the Manifest this is fatal for obvious reasons. I'm think about if the check for the derived flag can be removed from the WorkspaceModelManager.visit() method. That check was added for Bug 205888 but I think with the current implementation there would not really be a performance regression if derived resources would also be considered because they are only entered if they are 'interesting', which is only the case if the bundle-root is there (WorkspaceFeatureModelManager is generally not interested in sub-folders and WorkspaceProductModelManager can specify that is only interested in non-derived resources). However I'm about to submit a patch where it is only handled in WorkspacePluginModelManager for now. The patch should handle the original issue and the one just described. Nevertheless I would like to make myself more familiar with the code to gain more confidence about the change. Unfortunately I probably don't have more time to work on this this weekend and will be on vacation for most of the time next week. So I expect this will be too late for 2022-03, but it should be completed early in 2022-06. New Gerrit change created: https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/191246 New Gerrit change created: https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/192077 Gerrit change https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/192077 was merged to [master]. Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=fb5ad5bf72c88c5f7bf6076abadbc5e488e897be Gerrit change https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/191246 was merged to [master]. Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=15d4491246a0bc3eb19f874a4cd2774a1bdc2269 Christoph do you want to verify/test this with tomorrows I-build? |