From 4517021a75a74d0158f1303e2a6f5bc1f0b5fdec Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Mon, 3 Sep 2007 15:20:54 +0000 Subject: [PATCH] [201867] Improve Terminal SSH connection summary string --- .../org/eclipse/tm/internal/terminal/ssh/SshSettings.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/terminal/org.eclipse.tm.terminal.ssh/src/org/eclipse/tm/internal/terminal/ssh/SshSettings.java b/terminal/org.eclipse.tm.terminal.ssh/src/org/eclipse/tm/internal/terminal/ssh/SshSettings.java index af9a684ed3a..45c469dff73 100644 --- a/terminal/org.eclipse.tm.terminal.ssh/src/org/eclipse/tm/internal/terminal/ssh/SshSettings.java +++ b/terminal/org.eclipse.tm.terminal.ssh/src/org/eclipse/tm/internal/terminal/ssh/SshSettings.java @@ -8,6 +8,7 @@ * Contributors: * Michael Scharf (Wind River) - initial API and implementation * Martin Oberhuber (Wind River) - fixed copyright headers and beautified + * Mikhail Kalugin - [201867] Improve Terminal SSH connection summary string *******************************************************************************/ package org.eclipse.tm.internal.terminal.ssh; @@ -28,8 +29,11 @@ public class SshSettings implements ISshSettings { } public String getSummary() { - return getHost() + ":" + getUser(); //$NON-NLS-1$ - + String settings = getUser()+'@'+getHost(); + if(getPort()!=22) { + settings += ':' + getPort(); + } + return settings; } public void load(ISettingsStore store) {