diff options
author | james | 2002-01-14 17:52:55 +0000 |
---|---|---|
committer | james | 2002-01-14 17:52:55 +0000 |
commit | 5d863f286cf04dd8901f3ea77544c2f9fbb62732 (patch) | |
tree | d1b94066802cb88c5b61bd1b7bfd8833c2374d18 | |
parent | b67c294e42ec9364a0fa7c19f984d48c3f057359 (diff) | |
download | eclipse.platform.team-5d863f286cf04dd8901f3ea77544c2f9fbb62732.tar.gz eclipse.platform.team-5d863f286cf04dd8901f3ea77544c2f9fbb62732.tar.xz eclipse.platform.team-5d863f286cf04dd8901f3ea77544c2f9fbb62732.zip |
7518: port# missing from CVS properties page
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) |