Alexey Romanov
Alexey Romanov

Reputation: 170805

Proxies not set according to preferences on Eclipse RCP startup

I've added org.eclipse.core.net and org.eclipse.ui.net to my RCP application. According to this comment, this should be enough to set the Java system properties. But in my case, the properties are only set after I open the Network connections preference page. The problem is that the org.eclipse.*.net plugins aren't getting activated. Is there a more correct way to fix this than just loading a random class from these plugins?

Upvotes: 0

Views: 193

Answers (1)

Tom Seidel
Tom Seidel

Reputation: 9535

Do it like the Eclipse IDE does it. See org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.activateProxyService() in bundle org.eclipse.ui.ide.application

Upvotes: 2

Related Questions