Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-01-07 02:28:49 -0500
committerUwe Stieber2013-01-07 03:06:59 -0500
commitc3ce4537144aed437e18ef36a49bcd40e440044b (patch)
tree81c6e2959406f1074ac677365ae0098e72747785 /target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.telnet
parentd9f4b749a41ee44cc5d27992e10fbf4ab826d380 (diff)
downloadorg.eclipse.tcf-c3ce4537144aed437e18ef36a49bcd40e440044b.tar.gz
org.eclipse.tcf-c3ce4537144aed437e18ef36a49bcd40e440044b.tar.xz
org.eclipse.tcf-c3ce4537144aed437e18ef36a49bcd40e440044b.zip
Target Explorer: Disable the launch terminal settings dialog OK button if the settings panel is not valid for launching.
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, 14 insertions, 1 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 0ddc34d8f..d72b0f614 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Wind River Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2011, 2013 Wind River Systems, Inc. and others. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
@@ -19,10 +19,12 @@ import org.eclipse.swt.events.TypedEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;
import org.eclipse.tcf.te.runtime.services.interfaces.constants.ITerminalsConnectorConstants;
import org.eclipse.tcf.te.ui.controls.BaseDialogPageControl;
import org.eclipse.tcf.te.ui.interfaces.data.IDataExchangeNode;
+import org.eclipse.tcf.te.ui.jface.interfaces.IValidatingContainer;
import org.eclipse.tcf.te.ui.terminals.panels.AbstractConfigurationPanel;
import org.eclipse.tm.internal.terminal.provisional.api.ISettingsPage;
import org.eclipse.tm.internal.terminal.telnet.NetworkPortMap;
@@ -70,6 +72,17 @@ public class TelnetWizardConfigurationPanel extends AbstractConfigurationPanel i
telnetSettingsPage = conn.makeSettingsPage();
telnetSettingsPage.createControl(panel);
+ // Add the listener to the settings page
+ if (getParentControl() instanceof IValidatingContainer) {
+ telnetSettingsPage.addListener(new ISettingsPage.Listener() {
+
+ @Override
+ public void onSettingsPageChanged(Control control) {
+ ((IValidatingContainer)getParentControl()).validate();
+ }
+ });
+ }
+
// Create the encoding selection combo
createEncodingUI(panel, true);

Back to the top