Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-01-14 17:52:55 +0000
committerjames2002-01-14 17:52:55 +0000
commit5d863f286cf04dd8901f3ea77544c2f9fbb62732 (patch)
treed1b94066802cb88c5b61bd1b7bfd8833c2374d18
parentb67c294e42ec9364a0fa7c19f984d48c3f057359 (diff)
downloadeclipse.platform.team-5d863f286cf04dd8901f3ea77544c2f9fbb62732.tar.gz
eclipse.platform.team-5d863f286cf04dd8901f3ea77544c2f9fbb62732.tar.xz
eclipse.platform.team-5d863f286cf04dd8901f3ea77544c2f9fbb62732.zip
7518: port# missing from CVS properties page
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPropertiesPage.java11
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties2
2 files changed, 10 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPropertiesPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPropertiesPage.java
index 3a0b0bac5..a69a6ba61 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPropertiesPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPropertiesPage.java
@@ -1,7 +1,7 @@
package org.eclipse.team.internal.ccvs.ui;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2002.
* All Rights Reserved.
*/
@@ -40,6 +40,7 @@ public class CVSPropertiesPage extends PropertyPage {
Label hostLabel;
Label pathLabel;
Label moduleLabel;
+ Label portLabel;
boolean passwordChanged;
@@ -71,6 +72,9 @@ public class CVSPropertiesPage extends PropertyPage {
label = createLabel(composite, Policy.bind("CVSPropertiesPage.host"));
hostLabel = createLabel(composite, "");
+ label = createLabel(composite, Policy.bind("CVSPropertiesPage.port"));
+ portLabel = createLabel(composite, "");
+
label = createLabel(composite, Policy.bind("CVSPropertiesPage.path"));
pathLabel = createLabel(composite, "");
@@ -173,11 +177,12 @@ public class CVSPropertiesPage extends PropertyPage {
try {
ICVSRemoteResource resource = provider.getRemoteResource(project);
ICVSRepositoryLocation location = resource.getRepository();
+ hostLabel.setText(location.getHost());
int port = location.getPort();
if (port == ICVSRepositoryLocation.USE_DEFAULT_PORT) {
- hostLabel.setText(location.getHost());
+ portLabel.setText(Policy.bind("CVSPropertiesPage.defaultPort"));
} else {
- hostLabel.setText(location.getHost() + ":" + port);
+ portLabel.setText("" + port);
}
pathLabel.setText(location.getRootDirectory());
moduleLabel.setText(resource.getRelativePath());
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties
index 95a444f10..c007394a2 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties
@@ -81,8 +81,10 @@ CVSPropertiesPage.connectionType=Connection type:
CVSPropertiesPage.user=User:
CVSPropertiesPage.password=Password:
CVSPropertiesPage.host=Host:
+CVSPropertiesPage.port=Port:
CVSPropertiesPage.path=Repository path:
CVSPropertiesPage.module=Module:
+CVSPropertiesPage.defaultPort=Default
CVSPreferencePage.pruneEmptyDirectories=&Prune empty directories
CVSPreferencePage.timeoutValue=Communication timeout value (in seconds)

Back to the top