1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 12:55:40 +02:00

[201867] Improve Terminal SSH connection summary string

This commit is contained in:
Martin Oberhuber 2007-09-03 15:20:54 +00:00
parent 7910c3e1f0
commit ed01e4f3c8

View file

@ -8,6 +8,7 @@
* Contributors: * Contributors:
* Michael Scharf (Wind River) - initial API and implementation * Michael Scharf (Wind River) - initial API and implementation
* Martin Oberhuber (Wind River) - fixed copyright headers and beautified * Martin Oberhuber (Wind River) - fixed copyright headers and beautified
* Mikhail Kalugin <fourdman@xored.com> - [201867] Improve Terminal SSH connection summary string
*******************************************************************************/ *******************************************************************************/
package org.eclipse.tm.internal.terminal.ssh; package org.eclipse.tm.internal.terminal.ssh;
@ -28,8 +29,11 @@ public class SshSettings implements ISshSettings {
} }
public String getSummary() { 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) { public void load(ISettingsStore store) {