1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +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 2017ba6838
commit 4517021a75

View file

@ -8,6 +8,7 @@
* Contributors:
* Michael Scharf (Wind River) - initial API and implementation
* 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;
@ -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) {