Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.swtbot.swt.recorder/src/org/eclipse/swtbot/swt/recorder/widgets/text/CheckBoxSelectionListener.java')
-rw-r--r--org.eclipse.swtbot.swt.recorder/src/org/eclipse/swtbot/swt/recorder/widgets/text/CheckBoxSelectionListener.java46
1 files changed, 0 insertions, 46 deletions
diff --git a/org.eclipse.swtbot.swt.recorder/src/org/eclipse/swtbot/swt/recorder/widgets/text/CheckBoxSelectionListener.java b/org.eclipse.swtbot.swt.recorder/src/org/eclipse/swtbot/swt/recorder/widgets/text/CheckBoxSelectionListener.java
deleted file mode 100644
index 26cbe31f..00000000
--- a/org.eclipse.swtbot.swt.recorder/src/org/eclipse/swtbot/swt/recorder/widgets/text/CheckBoxSelectionListener.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Ketan Padegaonkar 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:
- * Ketan Padegaonkar - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swtbot.swt.recorder.widgets.text;
-
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swtbot.swt.finder.SWTBot;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox;
-import org.eclipse.swtbot.swt.recorder.generators.SWTBotEvent;
-import org.eclipse.swtbot.swt.recorder.listeners.ActionList;
-
-/**
- * @author Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
- * @version $Id$
- */
-public class CheckBoxSelectionListener extends AbstractTextBasedRecorderListener {
-
- /**
- * Creates a Checkbox selection listener.
- * @param eventList the event list to append to.
- * @param bot a helper swtbot instance.
- */
- public CheckBoxSelectionListener(ActionList eventList, SWTBot bot) {
- super(SWTBotCheckBox.class, eventList, bot);
- }
-
- protected SWTBotEvent createEvent(Event event) {
- Button checkBox = (Button) event.widget;
- return new SWTBotEvent(checkBox.getSelection() ? "select" : "deselect"); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- protected boolean doCanHandleEvent(Event event) {
- return event.type == SWT.Selection || event.type == SWT.DefaultSelection;
- }
-
-}

Back to the top