Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-05-08 06:09:04 +0000
committerUwe Stieber2013-05-08 06:09:04 +0000
commitf6acc4fd025879e7e2d677349f5a41f4fa1581bd (patch)
treef126e41f09184dbddea7a48d67f342cb82ae6639 /target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org
parent5b935f55bdb10f6b42971e0c4d780c956767314b (diff)
downloadorg.eclipse.tcf-f6acc4fd025879e7e2d677349f5a41f4fa1581bd.tar.gz
org.eclipse.tcf-f6acc4fd025879e7e2d677349f5a41f4fa1581bd.tar.xz
org.eclipse.tcf-f6acc4fd025879e7e2d677349f5a41f4fa1581bd.zip
Target Explorer: Rework simulator payload boot time handling
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/controls/SimulatorPayloadBoottimeControl.java91
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties2
3 files changed, 0 insertions, 95 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/controls/SimulatorPayloadBoottimeControl.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/controls/SimulatorPayloadBoottimeControl.java
deleted file mode 100644
index 9959b3f47..000000000
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/controls/SimulatorPayloadBoottimeControl.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 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
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.tcf.ui.controls;
-
-import org.eclipse.jface.dialogs.IDialogPage;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.VerifyListener;
-import org.eclipse.tcf.te.tcf.ui.nls.Messages;
-import org.eclipse.tcf.te.ui.controls.BaseEditBrowseTextControl;
-import org.eclipse.tcf.te.ui.controls.validator.NumberValidator;
-import org.eclipse.tcf.te.ui.controls.validator.NumberVerifyListener;
-import org.eclipse.tcf.te.ui.controls.validator.Validator;
-
-/**
- * Simulator payload boot time control implementation.
- */
-public class SimulatorPayloadBoottimeControl extends BaseEditBrowseTextControl {
-
- /**
- * Constructor
- *
- * @param parentPage The parent dialog page this control is embedded in.
- * Might be <code>null</code> if the control is not associated with a page.
- */
- public SimulatorPayloadBoottimeControl(IDialogPage page) {
- super(page);
-
- setIsGroup(false);
- setEditFieldLabel(Messages.SimulatorPayloadBoottimeControl_label);
- setHasHistory(false);
- setHideBrowseButton(true);
- setLabelIsButton(true);
- setLabelButtonStyle(SWT.CHECK);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.tcf.te.ui.controls.BaseEditBrowseTextControl#doCreateEditFieldValidator()
- */
- @Override
- protected Validator doCreateEditFieldValidator() {
- return new NumberValidator();
- }
-
- private VerifyListener verifyListener;
-
- /* (non-Javadoc)
- * @see org.eclipse.tcf.te.ui.controls.BaseEditBrowseTextControl#doGetEditFieldControlVerifyListener()
- */
- @Override
- protected VerifyListener doGetEditFieldControlVerifyListener() {
- if (verifyListener == null) {
- verifyListener = new NumberVerifyListener();
- }
- return verifyListener;
- }
-
- /**
- * Sets the simulator payload boot time in seconds.
- *
- * @param boottime The simulator payload boot time in seconds.
- */
- public void setSimulatorPayloadBoottime(int boottime) {
- if (boottime > 0) {
- setEditFieldControlText(Integer.toString(boottime));
- setLabelControlSelection(true);
- } else {
- setEditFieldControlText(""); //$NON-NLS-1$
- setLabelControlSelection(false);
- }
- }
-
- /**
- * Returns the simulator payload boot time in seconds.
- *
- * @return The simulator payload boot time in seconds.
- */
- public int getSimulatorPayloadBoottime() {
- int boottime = 0;
- if (!"".equals(getEditFieldControlText())) { //$NON-NLS-1$
- boottime = Integer.decode(getEditFieldControlText()).intValue();
- }
- return boottime;
- }
-}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java
index b58ee8657..ad7e95ef6 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java
@@ -173,8 +173,6 @@ public class Messages extends NLS {
public static String TargetSelectorSection_button_enableSimulator;
public static String TargetSelectorSection_button_enableReal;
- public static String SimulatorPayloadBoottimeControl_label;
-
public static String SimulatorTypeSelectionControl_label;
public static String SimulatorTypeSelectionControl_button_configure;
public static String SimulatorTypeSelectionControl_error_invalidConfiguration;
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties
index 7de8e30fa..86609176f 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties
@@ -130,8 +130,6 @@ TargetSelectorSection_title=Target
TargetSelectorSection_button_enableReal=Use running Target
TargetSelectorSection_button_enableSimulator=Start local Simulator:
-SimulatorPayloadBoottimeControl_label=Time to wait while the Simulator guest boots (in seconds):
-
SimulatorTypeSelectionControl_label=Simulator Type:
SimulatorTypeSelectionControl_button_configure=Configure...
SimulatorTypeSelectionControl_error_invalidConfiguration=The simulator configuration is not valid. Please click on ''Configure...'' to configure the simulator.

Back to the top