Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2007-02-19 18:57:23 +0000
committerMichael Valenta2007-02-19 18:57:23 +0000
commitceee77ff53ea5103b7641af3ea20f1bfcb718b9f (patch)
tree4b8391c17dede787160289313fdcddf98e1c4634 /bundles/org.eclipse.ui.net
parent525042ad94b4092d6ba0e2fb4a5c02b0df3b487b (diff)
downloadeclipse.platform.team-ceee77ff53ea5103b7641af3ea20f1bfcb718b9f.tar.gz
eclipse.platform.team-ceee77ff53ea5103b7641af3ea20f1bfcb718b9f.tar.xz
eclipse.platform.team-ceee77ff53ea5103b7641af3ea20f1bfcb718b9f.zip
Bug 154100 Platform level proxy settings
Diffstat (limited to 'bundles/org.eclipse.ui.net')
-rw-r--r--bundles/org.eclipse.ui.net/src/org/eclipse/net/internal/ui/ProxyPreferencePage.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/bundles/org.eclipse.ui.net/src/org/eclipse/net/internal/ui/ProxyPreferencePage.java b/bundles/org.eclipse.ui.net/src/org/eclipse/net/internal/ui/ProxyPreferencePage.java
index de4292c75..9d7eacc13 100644
--- a/bundles/org.eclipse.ui.net/src/org/eclipse/net/internal/ui/ProxyPreferencePage.java
+++ b/bundles/org.eclipse.ui.net/src/org/eclipse/net/internal/ui/ProxyPreferencePage.java
@@ -14,6 +14,8 @@
*******************************************************************************/
package org.eclipse.net.internal.ui;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.net.core.IProxyData;
import org.eclipse.net.core.NetCore;
@@ -190,9 +192,13 @@ public class ProxyPreferencePage extends PreferencePage implements
NetCore.getProxyManager().setProxiesEnabled(proxiesEnabled);
if (proxiesEnabled) {
- NetCore.getProxyManager().setProxyData(proxyData);
- NetCore.getProxyManager().setNonProxiedHosts(
- nonHostComposite.getList());
+ try {
+ NetCore.getProxyManager().setProxyData(proxyData);
+ NetCore.getProxyManager().setNonProxiedHosts(
+ nonHostComposite.getList());
+ } catch (CoreException e) {
+ ErrorDialog.openError(getShell(), null, null, e.getStatus());
+ }
}
Activator.getDefault().savePluginPreferences();
}

Back to the top