1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-15 04:55:22 +02:00

[225792][api][breaking] Rename SshConnector.getTelnetSettings() to getSshSettings()

This commit is contained in:
Martin Oberhuber 2008-04-04 17:38:42 +00:00
parent 5b0837cf7f
commit 4fd8ea2b77
3 changed files with 61 additions and 49 deletions

View file

@ -214,9 +214,13 @@ public class SerialConnector extends TerminalConnectorImpl {
SerialPortHandler getSerialPortHandler() {
return fTerminalSerialPortHandler;
}
/**
* Return the Serial Settings.
*
* @return the settings for a concrete connection.
*/
public ISerialSettings getSerialSettings() {
return fSettings;
}
public ISettingsPage makeSettingsPage() {
return new SerialSettingsPage(fSettings);

View file

@ -14,6 +14,7 @@
* Mikhail Kalugin <fourdman@xored.com> - [201864] Fix Terminal SSH keyboard interactive authentication
* Martin Oberhuber (Wind River) - [155026] Add keepalives for SSH connection
* Johnson Ma (Wind River) - [218880] Add UI setting for ssh keepalives
* Martin Oberhuber (Wind River) - [225792] Rename SshConnector.getTelnetSettings() to getSshSettings()
*******************************************************************************/
package org.eclipse.tm.internal.terminal.ssh;
@ -86,12 +87,12 @@ class SshConnection extends Thread {
public void run() {
try {
int nTimeout = fConn.getTelnetSettings().getTimeout() * 1000;
int nKeepalive = fConn.getTelnetSettings().getKeepalive() * 1000;
String host = fConn.getTelnetSettings().getHost();
String user = fConn.getTelnetSettings().getUser();
String password = fConn.getTelnetSettings().getPassword();
int port=fConn.getTelnetSettings().getPort();
int nTimeout = fConn.getSshSettings().getTimeout() * 1000;
int nKeepalive = fConn.getSshSettings().getKeepalive() * 1000;
String host = fConn.getSshSettings().getHost();
String user = fConn.getSshSettings().getUser();
String password = fConn.getSshSettings().getPassword();
int port = fConn.getSshSettings().getPort();
////Giving a connectionId could be the index into a local
////Store where passwords are stored

View file

@ -8,6 +8,7 @@
* Contributors:
* Michael Scharf (Wind River) - initial API and implementation
* Martin Oberhuber (Wind River) - fixed copyright headers and beautified
* Martin Oberhuber (Wind River) - [225792] Rename SshConnector.getTelnetSettings() to getSshSettings()
*******************************************************************************/
package org.eclipse.tm.internal.terminal.ssh;
@ -96,7 +97,13 @@ public class SshConnector extends TerminalConnectorImpl {
fControl.setState(state);
}
public ISshSettings getTelnetSettings() {
/**
* Return the SSH Settings.
*
* @return the settings for a concrete connection.
* @since org.eclipse.tm.terminal.ssh 2.0 renamed from getTelnetSettings()
*/
public ISshSettings getSshSettings() {
return fSettings;
}
public ISettingsPage makeSettingsPage() {