Summary: | Changes to ColorRegistry are not reflected in internal preferences | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | John Taylor <johnpaultaylorii> |
Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | minor | ||
Priority: | P3 | CC: | aobuchow, lshanmug, mistria |
Version: | 4.17 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://git.eclipse.org/r/165238 https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=433a7285783c47612cc62a7b385253449247caa2 https://bugs.eclipse.org/bugs/show_bug.cgi?id=576331 https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/190412 |
||
Whiteboard: | |||
Bug Depends on: | |||
Bug Blocks: | 531033 |
Description
John Taylor
2020-06-19 14:31:03 EDT
Question, for those who know more about this than me. The only reason for adding this synchronization is because EditorsPlugin needs to update colors in the registry, which is owned by WorkbenchPlugin. Since synchronization from WorkbenchPlugin's prefs to ColorRegistry already exists, if I could just update the WorkbenchPlugin's prefs, Bug 531033 could be resolved without this. So, my question is - is there any sanctioned way to update prefs for another plugin, or is it preferred to only use public API (in this case, ColorRegistry.put)? New Gerrit change created: https://git.eclipse.org/r/165238 Gerrit change https://git.eclipse.org/r/165238 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=433a7285783c47612cc62a7b385253449247caa2 Thanks! This change caused Bug 576331 as a side-effect. Any inputs on how to fix it? New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/190412 @John: what do you think? IIRC your patch was fixing some existing bugs with theme and pref page being out of sync, wasn't it? If not, then we can probably revert without causing issues. If yes, then I think it's really a matter of choosing between 2 bugs, and I would recommend choosing the one that seems to have the more correct implementation. |