Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2007-02-19 20:10:32 +0000
committerMichael Valenta2007-02-19 20:10:32 +0000
commit07ece1c6e7fd0ca58ff46d67606b3f06ae3d4359 (patch)
tree08eeaebe61ded103955cdc139e7a3871fb863f61 /bundles/org.eclipse.ui.net
parentceee77ff53ea5103b7641af3ea20f1bfcb718b9f (diff)
downloadeclipse.platform.team-07ece1c6e7fd0ca58ff46d67606b3f06ae3d4359.tar.gz
eclipse.platform.team-07ece1c6e7fd0ca58ff46d67606b3f06ae3d4359.tar.xz
eclipse.platform.team-07ece1c6e7fd0ca58ff46d67606b3f06ae3d4359.zip
Bug 174674 Hostname and port not updated properly on Network connections preference page
Diffstat (limited to 'bundles/org.eclipse.ui.net')
-rw-r--r--bundles/org.eclipse.ui.net/src/org/eclipse/net/internal/ui/ProxyPreferencePage.java27
1 files changed, 27 insertions, 0 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 9d7eacc13..fb7c94427 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
@@ -11,6 +11,7 @@
* -------- -------- -----------------------------------------------------------
* 20070123 154100 eu@md.pp.ru - Eugene Kuleshov, Initial UI coding
* 20070201 154100 pmoogk@ca.ibm.com - Peter Moogk, Port internet code from WTP to Eclipse base.
+ * 20070219 174674 pmoogk@ca.ibm.com - Peter Moogk
*******************************************************************************/
package org.eclipse.net.internal.ui;
@@ -20,6 +21,8 @@ import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.net.core.IProxyData;
import org.eclipse.net.core.NetCore;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
@@ -176,6 +179,30 @@ public class ProxyPreferencePage extends PreferencePage implements
password.setToolTipText(NetUIMessages.ProxyPreferencePage_27);
password.setEchoChar('*');
+ ModifyListener modifyListener = new ModifyListener()
+ {
+ public void modifyText(ModifyEvent e)
+ {
+ if( useSameProxyButton.getSelection() )
+ {
+ Entry httpEntry = entryList[0];
+ String httpHostname = httpEntry.hostname.getText();
+ String httpPort = httpEntry.port.getText();
+
+ for( int index = 1; index < entryList.length; index++ )
+ {
+ Entry entry = entryList[index];
+
+ entry.hostname.setText( httpHostname );
+ entry.port.setText( httpPort );
+ }
+ }
+ }
+ };
+
+ entryList[0].hostname.addModifyListener( modifyListener );
+ entryList[0].port.addModifyListener( modifyListener );
+
restoreState(NetCore.getProxyManager().isProxiesEnabled());
applyDialogFont(composite);

Back to the top