Configure network settings in an RCP application

We have an RCP application that sometimes gets some data from URLs on the Internet. Our client uses a proxy server, and we cannot obtain the necessary information if the network settings are not correct (setting the IP address of the proxy server and port number).

In Eclipse (IDE) for setting these parameters there is a dialog Preferences-> General-> Network Connections. I managed to turn on the Settings Dialog ( menu.add(new OpenPreferencesAction(window));and even get the “Network Connections” option (adding a dependency on org.eclipse.ui.netthe plugin’s settings). But when I open the dialog, it says: “The page currently being displayed contains invalid values.” And I can’t install there any values.

log files say: (thanks to VonC)

! ENTRY org.eclipse.jface 4 2 2009-11-09 21: 51: 39.798 MESSAGE Problems arise when calling the code from the plug-in: "org.eclipse.jface". ! STACK 0 java.lang.NoClassDefFoundError: org / eclipse / core / internal / net / ProxySelector on org.eclipse.ui.internal.net.ProxyEntriesComposite.initializeValues ​​(ProxyEntriesComposite.java:248) on org.eclipse.ui.internal .net.ProxyEntriesComposite.createWidgets (ProxyEntriesComposite.java:130) at org.eclipse.ui.internal.net.ProxyEntriesComposite. (ProxyEntriesComposite.java:57) at org.eclipse.ui.internal.net.ProxyPreferencePage.createProxyEntriesComposite (ProxyPreferencePage.java:81) at org.eclipse.ui.internal.net.ProxyPreferencePage.createContents (ProxyPreferencePage.java org.eclipse.jface.preference.PreferencePage.createControl (PreferencePage.java:235)

- eclipse-RCP, , , ?

+3
2

, :

RCP- Windows 32 :

  • org.eclipse.ui.net, org.eclipse.core.net org.eclipse.core.net.win32.x86 Manfifest. MF
  • , ( , org.eclipse.net.win32.x86). , IDE Galileo Eclipse
  • ActionBarAdvisor : menu.add(new OpenPreferencesAction(getActionBarConfigurer().getWindowConfigurer() .getWindow()));

DLL - !

+2

eclipse ( win32): : org.eclipse.core.net org.eclipse.ui.net jWinHttp-1.0.0.dll( org.eclipse.core.net.win32.x86) (, c:\windows). , DLL .

net api.

+1

Source: https://habr.com/ru/post/1722371/


All Articles