This issue is a spin-off from #194916 :
But the default IDE behavior is to pick up the system proxy settings.
(Currently this is a bit broken in that it considers system settings only at
startup, so you need to restart the IDE if you change proxies.)
The current approach is to determine proxy settings in the native launcher and pass them to the NB Java process as system properties. Making NB respond correctly to system proxy changes would require having the Java process directly read, and listen to changes in, these native APIs - probably using JNA. Not sure if it is worth the trouble, but would be nice to not need to restart the IDE when going on or off VPN, etc.
Please review the proposed patch which introduces a new possibility to reload network proxy settings from system anytime in running IDE.
In short the related apichanges:
* drop of reading proxy settings from native launcher of IDE
* reading proxy settings via JNA libs
* if the JNA lib is not a part of distribution then fallback to the standard Java Proxy Selector (it could be changed by someone else as before can)
* added a new module core.network containing the most of that implementation, it's a friend on o.n.core module
* added new UI in Tools|Options|General to allow reload the proxies
The whole implementation in the following attachment. Thanks
Created attachment 133080 [details]
proposed impl of #201731
Thanks for review even if there were no objections.
Changes merged from system_proxy_reload branch to trunk in changeset: http://hg.netbeans.org/core-main/rev/067996975b47
*** Bug 148534 has been marked as a duplicate of this bug. ***
*** Bug 62946 has been marked as a duplicate of this bug. ***