Community
Participate
Working Groups
Current Preferences API has a number of drawbacks: * it forces to leak constants for a particular preference keys * it requires caller to know also default value * it does not help to represent the preference in the UI It may be resolved via adding metadata {id, defaultValue, name, description} to descride a preference and then more OOP-style API that doesn't require to know particular identifiers. This approach already tested in CDT 9.11 for Doxygen Preferences https://github.com/eclipse-cdt/cdt/tree/master/core/org.eclipse.cdt.core/options/org/eclipse/cdt It would be nice to have it supported on equinox level.
New Gerrit change created: https://git.eclipse.org/r/160448
This one needs Equinox committer to review it
Jonah or Alex, can you review as this seems already be used in CDT?
I won't be able to look at anything until we get infrastructure and builds stable.
Alexander used CDT as a place to experiment with the new API. It is an interesting improvement on the API for preference handling, but I leave it to platform team to decide if it is correct and ready to be final API.
Tom, please have a look from M3.
Gerrit change https://git.eclipse.org/r/160448 was merged to [master]. Commit: http://git.eclipse.org/c/equinox/rt.equinox.bundles.git/commit/?id=e452e6967894c493e3dba238047e3c73b22fc79b
New Gerrit change created: https://git.eclipse.org/r/161142
@Jonah we can receive this for CDT improvements after Equinox 4.16 M2.
Gerrit change https://git.eclipse.org/r/161142 was merged to [master]. Commit: http://git.eclipse.org/c/equinox/rt.equinox.bundles.git/commit/?id=25ed849115f56d49d14884b2990c7983fac1d833
Would be nice to add this to the N&N for 4.16 via https://www.eclipse.org/eclipse/news/4.16/platform_isv.php