Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-01-08 03:20:41 -0500
committerUwe Stieber2013-01-08 03:20:41 -0500
commit8850f5bacb206c639d3ff34094758b256e11d646 (patch)
tree5eb60bf3108c4e232c943b55028b17dc52b3a954 /target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh
parentb82a0f3aae005d0165a735ae38807ea8689b3cdd (diff)
downloadorg.eclipse.tcf-8850f5bacb206c639d3ff34094758b256e11d646.tar.gz
org.eclipse.tcf-8850f5bacb206c639d3ff34094758b256e11d646.tar.xz
org.eclipse.tcf-8850f5bacb206c639d3ff34094758b256e11d646.zip
Target Explorer: Keep compatible terminal settings data entered by the user if switching the terminal type
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh/src/org/eclipse/tcf/te/ui/terminals/ssh/controls/SshWizardConfigurationPanel.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh/src/org/eclipse/tcf/te/ui/terminals/ssh/controls/SshWizardConfigurationPanel.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh/src/org/eclipse/tcf/te/ui/terminals/ssh/controls/SshWizardConfigurationPanel.java
index 7ceee8f9f..71479cd65 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh/src/org/eclipse/tcf/te/ui/terminals/ssh/controls/SshWizardConfigurationPanel.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.ssh/src/org/eclipse/tcf/te/ui/terminals/ssh/controls/SshWizardConfigurationPanel.java
@@ -108,6 +108,30 @@ public class SshWizardConfigurationPanel extends AbstractConfigurationPanel impl
*/
@Override
public void setupData(IPropertiesContainer data) {
+ if (data == null || sshSettings == null || sshSettingsPage == null) return;
+
+ String value = data.getStringProperty(ITerminalsConnectorConstants.PROP_IP_HOST);
+ if (value != null) sshSettings.setHost(value);
+
+ value = data.getStringProperty(ITerminalsConnectorConstants.PROP_IP_PORT);
+ if (value != null) sshSettings.setPort(value);
+
+ value = data.getStringProperty(ITerminalsConnectorConstants.PROP_TIMEOUT);
+ if (value != null) sshSettings.setTimeout(value);
+
+ value = data.getStringProperty(ITerminalsConnectorConstants.PROP_SSH_KEEP_ALIVE);
+ if (value != null) sshSettings.setKeepalive(value);
+
+ value = data.getStringProperty(ITerminalsConnectorConstants.PROP_SSH_PASSWORD);
+ if (value != null) sshSettings.setPassword(value);
+
+ value = data.getStringProperty(ITerminalsConnectorConstants.PROP_SSH_USER);
+ if (value != null) sshSettings.setUser(value);
+
+ value = data.getStringProperty(ITerminalsConnectorConstants.PROP_ENCODING);
+ if (value != null) setEncoding(value);
+
+ sshSettingsPage.loadSettings();
}
/**

Back to the top