Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-05-03 15:41:46 -0400
committerMichael Valenta2004-05-03 15:41:46 -0400
commit2bb45abd9c09aed24098c1c0042e9caeb1b2973b (patch)
treef92874d49ce9cc14521e52c967e3aeb8cbab46a1
parent74ca00782c20b82e568fb2b0ed70ed14f4a48a2a (diff)
downloadeclipse.platform.team-2bb45abd9c09aed24098c1c0042e9caeb1b2973b.tar.gz
eclipse.platform.team-2bb45abd9c09aed24098c1c0042e9caeb1b2973b.tar.xz
eclipse.platform.team-2bb45abd9c09aed24098c1c0042e9caeb1b2973b.zip
Bug 60375: Proxy server port is not preserved
-rw-r--r--bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/CVSSSH2PreferencePage.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/CVSSSH2PreferencePage.java b/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/CVSSSH2PreferencePage.java
index 821550214..c230439c1 100644
--- a/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/CVSSSH2PreferencePage.java
+++ b/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/CVSSSH2PreferencePage.java
@@ -260,18 +260,18 @@ public class CVSSSH2PreferencePage extends PreferencePage
gd.horizontalSpan=2;
proxyTypeCombo.setLayoutData(gd);
proxyTypeCombo.addModifyListener(new ModifyListener () {
- public void modifyText(ModifyEvent e){
- if(proxyPortText==null) return;
- Combo combo=(Combo)(e.getSource());
- String foo=combo.getText();
- if(foo.equals(HTTP)){
- proxyPortText.setText(HTTP_DEFAULT_PORT);
- }
- else if(foo.equals(SOCKS5)){
- proxyPortText.setText(SOCKS5_DEFAULT_PORT);
- }
- }
- });
+ public void modifyText(ModifyEvent e){
+ if(proxyPortText==null) return;
+ Combo combo=(Combo)(e.getSource());
+ String foo=combo.getText();
+ if(foo.equals(HTTP)){
+ proxyPortText.setText(HTTP_DEFAULT_PORT);
+ }
+ else if(foo.equals(SOCKS5)){
+ proxyPortText.setText(SOCKS5_DEFAULT_PORT);
+ }
+ }
+ });
proxyTypeCombo.add(HTTP);
proxyTypeCombo.add(SOCKS5);
proxyTypeCombo.select(0);
@@ -901,8 +901,8 @@ public class CVSSSH2PreferencePage extends PreferencePage
useProxy=store.getString(KEY_PROXY).equals("true"); //$NON-NLS-1$
enableProxy.setSelection(useProxy);
proxyHostText.setText(store.getString(KEY_PROXY_HOST));
- proxyPortText.setText(store.getString(KEY_PROXY_PORT));
proxyTypeCombo.select(store.getString(KEY_PROXY_TYPE).equals(HTTP)?0:1);
+ proxyPortText.setText(store.getString(KEY_PROXY_PORT));
useAuth=store.getString(KEY_PROXY_AUTH).equals("true"); //$NON-NLS-1$
enableAuth.setSelection(useAuth);

Back to the top