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.telnet
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.telnet')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.telnet/src/org/eclipse/tcf/te/ui/terminals/telnet/controls/TelnetWizardConfigurationPanel.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.telnet/src/org/eclipse/tcf/te/ui/terminals/telnet/controls/TelnetWizardConfigurationPanel.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.telnet/src/org/eclipse/tcf/te/ui/terminals/telnet/controls/TelnetWizardConfigurationPanel.java
index 8643a2a33..7d0252504 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.telnet/src/org/eclipse/tcf/te/ui/terminals/telnet/controls/TelnetWizardConfigurationPanel.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.telnet/src/org/eclipse/tcf/te/ui/terminals/telnet/controls/TelnetWizardConfigurationPanel.java
@@ -106,6 +106,21 @@ public class TelnetWizardConfigurationPanel extends AbstractConfigurationPanel i
*/
@Override
public void setupData(IPropertiesContainer data) {
+ if (data == null || telnetSettings == null || telnetSettingsPage == null) return;
+
+ String value = data.getStringProperty(ITerminalsConnectorConstants.PROP_IP_HOST);
+ if (value != null) telnetSettings.setHost(value);
+
+ value = data.getStringProperty(ITerminalsConnectorConstants.PROP_IP_PORT);
+ if (value != null) telnetSettings.setNetworkPort(value);
+
+ value = data.getStringProperty(ITerminalsConnectorConstants.PROP_TIMEOUT);
+ if (value != null) telnetSettings.setTimeout(value);
+
+ value = data.getStringProperty(ITerminalsConnectorConstants.PROP_ENCODING);
+ if (value != null) setEncoding(value);
+
+ telnetSettingsPage.loadSettings();
}
/* (non-Javadoc)

Back to the top