diff options
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) |