Community
Participate
Working Groups
As stated in https://bugs.eclipse.org/bugs/show_bug.cgi?id=217663#c3 the UI doesn't honor what is set via default preferences (e.g. via plugin_customization.ini etc.). This would be especially useful in headless mode though. Currently one needs to create the $osgi.configuration.area/.settings/org.eclipse.core.net.prefs first (which feels like using internal API).
The proxy preferences from plugin_customisation.ini doesn't get load because ProxyManager looks for settings directly in a configuration scope node. For this facility to work also default scope has to be searched. I will provide a patch as soon as I come up with a proper solution.
The change appeared to be more complex since there is code that explicitly walks through configuration scope nodes. No time to address the issue right now. Maybe someone is willing to help...
Created attachment 179635 [details] patch This patch provides support for default values of proxy preferences. Main features: - possibility to provide default settings through -pluginCustomization which allows to use proxy settings in headless mode, - separation of direct operations on preferences to PreferencesManager - interaction with preferences only by using its public methods - ability to get default values of proxy settings for e.g. full functional Restore Defaults button (bug 283036).
Created attachment 180349 [details] updated patch
Now it looks good. Thanks Wojtek.
This fix is not good. It causes exceptions, see bug 327672.