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:
parent
2017ba6838
commit
4517021a75
1 changed files with 6 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue