mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 13:25:45 +02:00
[201867] Improve Terminal SSH connection summary string
This commit is contained in:
parent
7910c3e1f0
commit
ed01e4f3c8
1 changed files with 6 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue