| /******************************************************************************* |
| * Copyright (c) 2008, 2018 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 |
| * Patrick Tasse - Add support for SWTBotCanvas |
| *******************************************************************************/ |
| package org.eclipse.swtbot.swt.finder; |
| |
| import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.allOf; |
| import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.inGroup; |
| import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.widgetOfType; |
| import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.withId; |
| import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.withMessage; |
| import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.withMnemonic; |
| import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.withStyle; |
| import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.withText; |
| import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.withTooltip; |
| |
| import org.eclipse.swt.SWT; |
| import org.eclipse.swt.browser.Browser; |
| import org.eclipse.swt.custom.CCombo; |
| import org.eclipse.swt.custom.CLabel; |
| import org.eclipse.swt.custom.CTabItem; |
| import org.eclipse.swt.custom.StyledText; |
| import org.eclipse.swt.widgets.Button; |
| import org.eclipse.swt.widgets.Canvas; |
| import org.eclipse.swt.widgets.Combo; |
| import org.eclipse.swt.widgets.DateTime; |
| import org.eclipse.swt.widgets.ExpandBar; |
| import org.eclipse.swt.widgets.Label; |
| import org.eclipse.swt.widgets.Link; |
| import org.eclipse.swt.widgets.List; |
| import org.eclipse.swt.widgets.ProgressBar; |
| import org.eclipse.swt.widgets.Scale; |
| import org.eclipse.swt.widgets.Slider; |
| import org.eclipse.swt.widgets.Spinner; |
| import org.eclipse.swt.widgets.TabItem; |
| import org.eclipse.swt.widgets.Table; |
| import org.eclipse.swt.widgets.Text; |
| import org.eclipse.swt.widgets.ToolItem; |
| import org.eclipse.swt.widgets.Tree; |
| import org.eclipse.swt.widgets.Widget; |
| import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException; |
| import org.eclipse.swtbot.swt.finder.finders.ChildrenControlFinder; |
| import org.eclipse.swtbot.swt.finder.finders.ControlFinder; |
| import org.eclipse.swtbot.swt.finder.finders.Finder; |
| import org.eclipse.swtbot.swt.finder.finders.MenuFinder; |
| import org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory; |
| import org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotArrowButton; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotBrowser; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotButton; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotCCombo; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotCLabel; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotCanvas; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotDateTime; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotExpandBar; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotLabel; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotLink; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotList; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotProgressBar; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotRadio; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotScale; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotSlider; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotSpinner; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotStyledText; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotTabItem; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotText; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotToggleButton; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarButton; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarDropDownButton; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarPushButton; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarRadioButton; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton; |
| import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree; |
| import org.hamcrest.Matcher; |
| |
| |
| /** |
| * This class contains convenience API to find widgets in SWTBot. |
| * Most users would start off as follows: |
| * |
| * <pre> |
| * SWTBot bot = new SWTBot(); |
| * |
| * bot.button("hello world").click(); |
| * |
| * // in case you have two edit buttons in two different groups |
| * // say an edit button in the "Address" section, |
| * // and another in "Bank Account" section, you can do the following |
| * // to click on the "Edit" button on the "Bank Account" section. |
| * // This is the recommended way to use SWTBot, instead of finding widgets based on its index. |
| * bot.buttonInGroup("Edit", "Bank Account").click(); |
| * </pre> |
| * |
| * For finding widgets using custom matchers: |
| * |
| * <pre> |
| * SWTBot bot = new SWTBot(); |
| * // |
| * // find a button within the currently active shell: |
| * // |
| * SWTBotButton button = new SWTBotButton((Button) bot.widget(aMatcher)); // or |
| * SWTBotButton button = new SWTBotButton((Button) bot.widget(aMatcher, 3)); // for the 4th widget |
| * // |
| * // to find a button within a particular parent composite: |
| * // |
| * SWTBotButton button = new SWTBotButton((Button) bot.widget(aMatcher, parentComposite)); //or |
| * SWTBotButton button = new SWTBotButton((Button) bot.widget(aMatcher, parentComposite, 3)); //for the 4th widget |
| * </pre> |
| * |
| * @version $Id$ |
| */ |
| public class SWTBot extends SWTBotFactory { |
| |
| /** |
| * Constructs a bot. |
| */ |
| public SWTBot() { |
| this(new ControlFinder(), new MenuFinder()); |
| } |
| |
| /** |
| * Constructs a bot that will match the contents of the given parentWidget. |
| * |
| * @param parent the parent |
| */ |
| public SWTBot(Widget parent) { |
| this(new ChildrenControlFinder(parent), new MenuFinder()); |
| } |
| /** |
| * Constructs an instance of the bot using the given control finder and menu finder. |
| * |
| * @param controlFinder the {@link ControlFinder} used to identify and find controls. |
| * @param menuFinder the {@link MenuFinder} used to find menu items. |
| */ |
| public SWTBot(ControlFinder controlFinder, MenuFinder menuFinder) { |
| this(new Finder(controlFinder, menuFinder)); |
| } |
| |
| /** |
| * Constructs a bot with the given finder. |
| * |
| * @param finder the finder. |
| */ |
| public SWTBot(Finder finder) { |
| super(finder); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotButton} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotButton buttonWithLabel(String label) { |
| return buttonWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotButton buttonWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotButton button(String mnemonicText) { |
| return button(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotButton button(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withMnemonic(mnemonicText), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotButton buttonWithTooltip(String tooltip) { |
| return buttonWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotButton buttonWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @deprecated use {@link #buttonWithId(String, Object)} instead |
| */ |
| @Deprecated |
| public SWTBotButton buttonWithId(String key, String value) { |
| return buttonWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @deprecated use {@link #buttonWithId(String, Object, int)} instead |
| */ |
| @Deprecated |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotButton buttonWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withId(key, value), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotButton buttonWithId(String value) { |
| return buttonWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotButton buttonWithId(String value, int index) { |
| return buttonWithId(SWTBotPreferences.DEFAULT_KEY, value, index); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotButton} with the specified <code>key/value</code> as data. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @see Widget#setData(String, Object) |
| * @since 2.7 |
| */ |
| public SWTBotButton buttonWithId(String key, Object value) { |
| return buttonWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>key/value</code> as data. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @see Widget#setData(String, Object) |
| * @since 2.7 |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotButton buttonWithId(String key, Object value, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withId(key, value), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotButton buttonInGroup(String inGroup) { |
| return buttonInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotButton buttonInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotButton button() { |
| return button(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotButton button(int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotButton} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotButton buttonWithLabelInGroup(String label, String inGroup) { |
| return buttonWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotButton buttonWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotButton buttonInGroup(String mnemonicText, String inGroup) { |
| return buttonInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotButton buttonInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotButton buttonWithTooltipInGroup(String tooltip, String inGroup) { |
| return buttonWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotButton buttonWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotArrowButton arrowButtonWithLabel(String label) { |
| return arrowButtonWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotArrowButton arrowButtonWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), withStyle(SWT.ARROW, "SWT.ARROW")); |
| return new SWTBotArrowButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotArrowButton arrowButtonWithTooltip(String tooltip) { |
| return arrowButtonWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotArrowButton arrowButtonWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), withStyle(SWT.ARROW, "SWT.ARROW")); |
| return new SWTBotArrowButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotArrowButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotArrowButton arrowButtonWithId(String key, String value) { |
| return arrowButtonWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotArrowButton arrowButtonWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withId(key, value), withStyle(SWT.ARROW, "SWT.ARROW")); |
| return new SWTBotArrowButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotArrowButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotArrowButton arrowButtonWithId(String value) { |
| return arrowButtonWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotArrowButton arrowButtonWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withId(value), withStyle(SWT.ARROW, "SWT.ARROW")); |
| return new SWTBotArrowButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotArrowButton arrowButtonInGroup(String inGroup) { |
| return arrowButtonInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotArrowButton arrowButtonInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), inGroup(inGroup), withStyle(SWT.ARROW, "SWT.ARROW")); |
| return new SWTBotArrowButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotArrowButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotArrowButton arrowButton() { |
| return arrowButton(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotArrowButton arrowButton(int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withStyle(SWT.ARROW, "SWT.ARROW")); |
| return new SWTBotArrowButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotArrowButton arrowButtonWithLabelInGroup(String label, String inGroup) { |
| return arrowButtonWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotArrowButton arrowButtonWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), inGroup(inGroup), withStyle(SWT.ARROW, "SWT.ARROW")); |
| return new SWTBotArrowButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotArrowButton arrowButtonWithTooltipInGroup(String tooltip, String inGroup) { |
| return arrowButtonWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotArrowButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotArrowButton arrowButtonWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.ARROW, "SWT.ARROW")); |
| return new SWTBotArrowButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotCanvas}. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| public SWTBotCanvas canvas() { |
| return canvas(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCanvas}. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| @SuppressWarnings("unchecked") |
| public SWTBotCanvas canvas(int index) { |
| Matcher<Canvas> matcher = allOf(widgetOfType(Canvas.class)); |
| return new SWTBotCanvas(widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotCanvas} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| public SWTBotCanvas canvasWithTooltip(String tooltip) { |
| return canvasWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCanvas} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCanvas canvasWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(Canvas.class), withTooltip(tooltip)); |
| return new SWTBotCanvas((Canvas) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotCanvas} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| public SWTBotCanvas canvasWithId(String key, String value) { |
| return canvasWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCanvas} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCanvas canvasWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Canvas.class), withId(key, value)); |
| return new SWTBotCanvas((Canvas) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotCanvas} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| public SWTBotCanvas canvasWithId(String value) { |
| return canvasWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCanvas} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCanvas canvasWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Canvas.class), withId(value)); |
| return new SWTBotCanvas((Canvas) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param group the group that the widget belongs to. |
| * @return a {@link SWTBotCanvas} in the specified <code>group</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| public SWTBotCanvas canvasInGroup(String group) { |
| return canvasInGroup(group, 0); |
| } |
| |
| /** |
| * @param group the group that the widget belongs to. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCanvas} in the specified <code>group</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCanvas canvasInGroup(String group, int index) { |
| Matcher matcher = allOf(widgetOfType(Canvas.class), inGroup(group)); |
| return new SWTBotCanvas((Canvas) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param group the group that the widget belongs to. |
| * @return a {@link SWTBotCanvas} with the specified <code>tooltip</code> in the specified <code>group</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| public SWTBotCanvas canvasWithTooltipInGroup(String tooltip, String group) { |
| return canvasWithTooltipInGroup(tooltip, group, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param group the group that the widget belongs to. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCanvas} with the specified <code>tooltip</code> in the specified <code>group</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.4 |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCanvas canvasWithTooltipInGroup(String tooltip, String group, int index) { |
| Matcher matcher = allOf(widgetOfType(Canvas.class), withTooltip(tooltip), inGroup(group)); |
| return new SWTBotCanvas((Canvas) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCheckBox checkBoxWithLabel(String label) { |
| return checkBoxWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCheckBox checkBoxWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotCheckBox((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCheckBox checkBox(String mnemonicText) { |
| return checkBox(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCheckBox checkBox(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withMnemonic(mnemonicText), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotCheckBox((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCheckBox checkBoxWithTooltip(String tooltip) { |
| return checkBoxWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCheckBox checkBoxWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotCheckBox((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotCheckBox} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCheckBox checkBoxWithId(String key, String value) { |
| return checkBoxWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCheckBox checkBoxWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withId(key, value), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotCheckBox((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotCheckBox} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCheckBox checkBoxWithId(String value) { |
| return checkBoxWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCheckBox checkBoxWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withId(value), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotCheckBox((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCheckBox checkBoxInGroup(String inGroup) { |
| return checkBoxInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCheckBox checkBoxInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotCheckBox((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotCheckBox} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCheckBox checkBox() { |
| return checkBox(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCheckBox checkBox(int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotCheckBox((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCheckBox checkBoxWithLabelInGroup(String label, String inGroup) { |
| return checkBoxWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCheckBox checkBoxWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotCheckBox((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCheckBox checkBoxInGroup(String mnemonicText, String inGroup) { |
| return checkBoxInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCheckBox checkBoxInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotCheckBox((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCheckBox checkBoxWithTooltipInGroup(String tooltip, String inGroup) { |
| return checkBoxWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCheckBox} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCheckBox checkBoxWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotCheckBox((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotRadio radioWithLabel(String label) { |
| return radioWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotRadio radioWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotRadio((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotRadio radio(String mnemonicText) { |
| return radio(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotRadio radio(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withMnemonic(mnemonicText), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotRadio((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotRadio radioWithTooltip(String tooltip) { |
| return radioWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotRadio radioWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotRadio((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotRadio} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotRadio radioWithId(String key, String value) { |
| return radioWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotRadio radioWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withId(key, value), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotRadio((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotRadio} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotRadio radioWithId(String value) { |
| return radioWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotRadio radioWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withId(value), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotRadio((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotRadio radioInGroup(String inGroup) { |
| return radioInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotRadio radioInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), inGroup(inGroup), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotRadio((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotRadio} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotRadio radio() { |
| return radio(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotRadio radio(int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotRadio((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotRadio radioWithLabelInGroup(String label, String inGroup) { |
| return radioWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotRadio radioWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), inGroup(inGroup), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotRadio((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotRadio radioInGroup(String mnemonicText, String inGroup) { |
| return radioInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotRadio radioInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotRadio((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotRadio radioWithTooltipInGroup(String tooltip, String inGroup) { |
| return radioWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotRadio} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotRadio radioWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotRadio((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToggleButton toggleButtonWithLabel(String label) { |
| return toggleButtonWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToggleButton toggleButtonWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), withStyle(SWT.TOGGLE, "SWT.TOGGLE")); |
| return new SWTBotToggleButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToggleButton toggleButton(String mnemonicText) { |
| return toggleButton(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToggleButton toggleButton(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withMnemonic(mnemonicText), withStyle(SWT.TOGGLE, "SWT.TOGGLE")); |
| return new SWTBotToggleButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToggleButton toggleButtonWithTooltip(String tooltip) { |
| return toggleButtonWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToggleButton toggleButtonWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), withStyle(SWT.TOGGLE, "SWT.TOGGLE")); |
| return new SWTBotToggleButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotToggleButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToggleButton toggleButtonWithId(String key, String value) { |
| return toggleButtonWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToggleButton toggleButtonWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withId(key, value), withStyle(SWT.TOGGLE, "SWT.TOGGLE")); |
| return new SWTBotToggleButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotToggleButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToggleButton toggleButtonWithId(String value) { |
| return toggleButtonWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToggleButton toggleButtonWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withId(value), withStyle(SWT.TOGGLE, "SWT.TOGGLE")); |
| return new SWTBotToggleButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToggleButton toggleButtonInGroup(String inGroup) { |
| return toggleButtonInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToggleButton toggleButtonInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), inGroup(inGroup), withStyle(SWT.TOGGLE, "SWT.TOGGLE")); |
| return new SWTBotToggleButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotToggleButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToggleButton toggleButton() { |
| return toggleButton(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToggleButton toggleButton(int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withStyle(SWT.TOGGLE, "SWT.TOGGLE")); |
| return new SWTBotToggleButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToggleButton toggleButtonWithLabelInGroup(String label, String inGroup) { |
| return toggleButtonWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToggleButton toggleButtonWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withLabel(label), inGroup(inGroup), withStyle(SWT.TOGGLE, "SWT.TOGGLE")); |
| return new SWTBotToggleButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToggleButton toggleButtonInGroup(String mnemonicText, String inGroup) { |
| return toggleButtonInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToggleButton toggleButtonInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.TOGGLE, "SWT.TOGGLE")); |
| return new SWTBotToggleButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToggleButton toggleButtonWithTooltipInGroup(String tooltip, String inGroup) { |
| return toggleButtonWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToggleButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToggleButton toggleButtonWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Button.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.TOGGLE, "SWT.TOGGLE")); |
| return new SWTBotToggleButton((Button) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotTree} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTree treeWithLabel(String label) { |
| return treeWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTree} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTree treeWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Tree.class), withLabel(label)); |
| return new SWTBotTree((Tree) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotTree} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTree treeWithId(String key, String value) { |
| return treeWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTree} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTree treeWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Tree.class), withId(key, value)); |
| return new SWTBotTree((Tree) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotTree} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTree treeWithId(String value) { |
| return treeWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTree} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTree treeWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Tree.class), withId(value)); |
| return new SWTBotTree((Tree) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotTree} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTree treeInGroup(String inGroup) { |
| return treeInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTree} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTree treeInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Tree.class), inGroup(inGroup)); |
| return new SWTBotTree((Tree) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotTree} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTree tree() { |
| return tree(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTree} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTree tree(int index) { |
| Matcher matcher = allOf(widgetOfType(Tree.class)); |
| return new SWTBotTree((Tree) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotTree} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTree treeWithLabelInGroup(String label, String inGroup) { |
| return treeWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTree} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTree treeWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Tree.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotTree((Tree) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotText} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText textWithLabel(String label) { |
| return textWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText textWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class), withLabel(label)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @return a {@link SWTBotText} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText text(String text) { |
| return text(text, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText text(String text, int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class), withText(text)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotText} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText textWithTooltip(String tooltip) { |
| return textWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText textWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class), withTooltip(tooltip)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param message the message on the widget. |
| * @return a {@link SWTBotText} with the specified <code>message</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText textWithMessage(String message) { |
| return textWithMessage(message, 0); |
| } |
| |
| /** |
| * @param message the message on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>message</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText textWithMessage(String message, int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class), withMessage(message)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotText} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText textWithId(String key, String value) { |
| return textWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText textWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class), withId(key, value)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotText} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText textWithId(String value) { |
| return textWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText textWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class), withId(value)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotText} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText textInGroup(String inGroup) { |
| return textInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText textInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class), inGroup(inGroup)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotText} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText text() { |
| return text(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText text(int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotText} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText textWithLabelInGroup(String label, String inGroup) { |
| return textWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText textWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotText} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText textInGroup(String text, String inGroup) { |
| return textInGroup(text, inGroup, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText textInGroup(String text, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class), withText(text), inGroup(inGroup)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotText} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotText textWithTooltipInGroup(String tooltip, String inGroup) { |
| return textWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotText} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotText textWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Text.class), withTooltip(tooltip), inGroup(inGroup)); |
| return new SWTBotText((Text) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCombo comboBoxWithLabel(String label) { |
| return comboBoxWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCombo comboBoxWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Combo.class), withLabel(label)); |
| return new SWTBotCombo((Combo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCombo comboBox(String text) { |
| return comboBox(text, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCombo comboBox(String text, int index) { |
| Matcher matcher = allOf(widgetOfType(Combo.class), withText(text)); |
| return new SWTBotCombo((Combo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotCombo} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCombo comboBoxWithId(String key, String value) { |
| return comboBoxWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCombo comboBoxWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Combo.class), withId(key, value)); |
| return new SWTBotCombo((Combo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotCombo} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCombo comboBoxWithId(String value) { |
| return comboBoxWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCombo comboBoxWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Combo.class), withId(value)); |
| return new SWTBotCombo((Combo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCombo comboBoxInGroup(String inGroup) { |
| return comboBoxInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCombo comboBoxInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Combo.class), inGroup(inGroup)); |
| return new SWTBotCombo((Combo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotCombo} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCombo comboBox() { |
| return comboBox(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCombo comboBox(int index) { |
| Matcher matcher = allOf(widgetOfType(Combo.class)); |
| return new SWTBotCombo((Combo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCombo comboBoxWithLabelInGroup(String label, String inGroup) { |
| return comboBoxWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCombo comboBoxWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Combo.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotCombo((Combo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCombo comboBoxInGroup(String text, String inGroup) { |
| return comboBoxInGroup(text, inGroup, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCombo} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCombo comboBoxInGroup(String text, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Combo.class), withText(text), inGroup(inGroup)); |
| return new SWTBotCombo((Combo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCCombo ccomboBox(String text) { |
| return ccomboBox(text, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCCombo ccomboBox(String text, int index) { |
| Matcher matcher = allOf(widgetOfType(CCombo.class), withText(text)); |
| return new SWTBotCCombo((CCombo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCCombo ccomboBoxWithLabel(String label) { |
| return ccomboBoxWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCCombo ccomboBoxWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(CCombo.class), withLabel(label)); |
| return new SWTBotCCombo((CCombo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotCCombo} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCCombo ccomboBoxWithId(String key, String value) { |
| return ccomboBoxWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCCombo ccomboBoxWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(CCombo.class), withId(key, value)); |
| return new SWTBotCCombo((CCombo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotCCombo} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCCombo ccomboBoxWithId(String value) { |
| return ccomboBoxWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCCombo ccomboBoxWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(CCombo.class), withId(value)); |
| return new SWTBotCCombo((CCombo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCCombo ccomboBoxInGroup(String inGroup) { |
| return ccomboBoxInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCCombo ccomboBoxInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(CCombo.class), inGroup(inGroup)); |
| return new SWTBotCCombo((CCombo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotCCombo} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCCombo ccomboBox() { |
| return ccomboBox(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCCombo ccomboBox(int index) { |
| Matcher matcher = allOf(widgetOfType(CCombo.class)); |
| return new SWTBotCCombo((CCombo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCCombo ccomboBoxInGroup(String text, String inGroup) { |
| return ccomboBoxInGroup(text, inGroup, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCCombo ccomboBoxInGroup(String text, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(CCombo.class), withText(text), inGroup(inGroup)); |
| return new SWTBotCCombo((CCombo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCCombo ccomboBoxWithLabelInGroup(String label, String inGroup) { |
| return ccomboBoxWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCCombo} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCCombo ccomboBoxWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(CCombo.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotCCombo((CCombo) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotCLabel} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCLabel clabel(String mnemonicText) { |
| return clabel(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCLabel} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCLabel clabel(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(CLabel.class), withMnemonic(mnemonicText)); |
| return new SWTBotCLabel((CLabel) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotCLabel} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCLabel clabelWithId(String key, String value) { |
| return clabelWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCLabel} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCLabel clabelWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(CLabel.class), withId(key, value)); |
| return new SWTBotCLabel((CLabel) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotCLabel} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCLabel clabelWithId(String value) { |
| return clabelWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCLabel} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCLabel clabelWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(CLabel.class), withId(value)); |
| return new SWTBotCLabel((CLabel) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCLabel} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCLabel clabelInGroup(String inGroup) { |
| return clabelInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCLabel} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCLabel clabelInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(CLabel.class), inGroup(inGroup)); |
| return new SWTBotCLabel((CLabel) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotCLabel} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCLabel clabel() { |
| return clabel(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCLabel} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCLabel clabel(int index) { |
| Matcher matcher = allOf(widgetOfType(CLabel.class)); |
| return new SWTBotCLabel((CLabel) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCLabel} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCLabel clabelInGroup(String mnemonicText, String inGroup) { |
| return clabelInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCLabel} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCLabel clabelInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(CLabel.class), withMnemonic(mnemonicText), inGroup(inGroup)); |
| return new SWTBotCLabel((CLabel) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotLabel} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLabel label(String mnemonicText) { |
| return label(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLabel} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLabel label(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(Label.class), withMnemonic(mnemonicText)); |
| return new SWTBotLabel((Label) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotLabel} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLabel labelWithId(String key, String value) { |
| return labelWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLabel} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLabel labelWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Label.class), withId(key, value)); |
| return new SWTBotLabel((Label) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotLabel} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLabel labelWithId(String value) { |
| return labelWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLabel} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLabel labelWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Label.class), withId(value)); |
| return new SWTBotLabel((Label) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotLabel} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLabel labelInGroup(String inGroup) { |
| return labelInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLabel} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLabel labelInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Label.class), inGroup(inGroup)); |
| return new SWTBotLabel((Label) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotLabel} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLabel label() { |
| return label(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLabel} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLabel label(int index) { |
| Matcher matcher = allOf(widgetOfType(Label.class)); |
| return new SWTBotLabel((Label) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotLabel} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLabel labelInGroup(String mnemonicText, String inGroup) { |
| return labelInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLabel} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLabel labelInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Label.class), withMnemonic(mnemonicText), inGroup(inGroup)); |
| return new SWTBotLabel((Label) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotList} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotList listWithLabel(String label) { |
| return listWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotList} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotList listWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(List.class), withLabel(label)); |
| return new SWTBotList((List) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotList} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotList listWithId(String key, String value) { |
| return listWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotList} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotList listWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(List.class), withId(key, value)); |
| return new SWTBotList((List) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotList} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotList listWithId(String value) { |
| return listWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotList} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotList listWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(List.class), withId(value)); |
| return new SWTBotList((List) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotList} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotList listInGroup(String inGroup) { |
| return listInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotList} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotList listInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(List.class), inGroup(inGroup)); |
| return new SWTBotList((List) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotList} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotList list() { |
| return list(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotList} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotList list(int index) { |
| Matcher matcher = allOf(widgetOfType(List.class)); |
| return new SWTBotList((List) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotList} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotList listWithLabelInGroup(String label, String inGroup) { |
| return listWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotList} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotList listWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(List.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotList((List) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotTable} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTable tableWithLabel(String label) { |
| return tableWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTable} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTable tableWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Table.class), withLabel(label)); |
| return new SWTBotTable((Table) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotTable} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTable tableWithId(String key, String value) { |
| return tableWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTable} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTable tableWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Table.class), withId(key, value)); |
| return new SWTBotTable((Table) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotTable} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTable tableWithId(String value) { |
| return tableWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTable} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTable tableWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Table.class), withId(value)); |
| return new SWTBotTable((Table) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotTable} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTable tableInGroup(String inGroup) { |
| return tableInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTable} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTable tableInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Table.class), inGroup(inGroup)); |
| return new SWTBotTable((Table) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotTable} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTable table() { |
| return table(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTable} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTable table(int index) { |
| Matcher matcher = allOf(widgetOfType(Table.class)); |
| return new SWTBotTable((Table) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotTable} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTable tableWithLabelInGroup(String label, String inGroup) { |
| return tableWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTable} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTable tableWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Table.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotTable((Table) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotTabItem} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTabItem tabItem(String mnemonicText) { |
| return tabItem(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTabItem} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTabItem tabItem(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(TabItem.class), withMnemonic(mnemonicText)); |
| return new SWTBotTabItem((TabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotTabItem} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTabItem tabItemWithId(String key, String value) { |
| return tabItemWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTabItem} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTabItem tabItemWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(TabItem.class), withId(key, value)); |
| return new SWTBotTabItem((TabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotTabItem} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTabItem tabItemWithId(String value) { |
| return tabItemWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTabItem} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTabItem tabItemWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(TabItem.class), withId(value)); |
| return new SWTBotTabItem((TabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotTabItem} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTabItem tabItemInGroup(String inGroup) { |
| return tabItemInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTabItem} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTabItem tabItemInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(TabItem.class), inGroup(inGroup)); |
| return new SWTBotTabItem((TabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotTabItem} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTabItem tabItem() { |
| return tabItem(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTabItem} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTabItem tabItem(int index) { |
| Matcher matcher = allOf(widgetOfType(TabItem.class)); |
| return new SWTBotTabItem((TabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotTabItem} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotTabItem tabItemInGroup(String mnemonicText, String inGroup) { |
| return tabItemInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotTabItem} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotTabItem tabItemInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(TabItem.class), withMnemonic(mnemonicText), inGroup(inGroup)); |
| return new SWTBotTabItem((TabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotCTabItem} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCTabItem cTabItem(String mnemonicText) { |
| return cTabItem(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCTabItem} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCTabItem cTabItem(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(CTabItem.class), withMnemonic(mnemonicText)); |
| return new SWTBotCTabItem((CTabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotCTabItem} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCTabItem cTabItemWithId(String key, String value) { |
| return cTabItemWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCTabItem} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCTabItem cTabItemWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(CTabItem.class), withId(key, value)); |
| return new SWTBotCTabItem((CTabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotCTabItem} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCTabItem cTabItemWithId(String value) { |
| return cTabItemWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCTabItem} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCTabItem cTabItemWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(CTabItem.class), withId(value)); |
| return new SWTBotCTabItem((CTabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCTabItem} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCTabItem cTabItemInGroup(String inGroup) { |
| return cTabItemInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCTabItem} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCTabItem cTabItemInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(CTabItem.class), inGroup(inGroup)); |
| return new SWTBotCTabItem((CTabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotCTabItem} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCTabItem cTabItem() { |
| return cTabItem(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCTabItem} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCTabItem cTabItem(int index) { |
| Matcher matcher = allOf(widgetOfType(CTabItem.class)); |
| return new SWTBotCTabItem((CTabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotCTabItem} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotCTabItem cTabItemInGroup(String mnemonicText, String inGroup) { |
| return cTabItemInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotCTabItem} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotCTabItem cTabItemInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(CTabItem.class), withMnemonic(mnemonicText), inGroup(inGroup)); |
| return new SWTBotCTabItem((CTabItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotStyledText styledTextWithLabel(String label) { |
| return styledTextWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotStyledText styledTextWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(StyledText.class), withLabel(label)); |
| return new SWTBotStyledText((StyledText) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotStyledText styledText(String text) { |
| return styledText(text, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotStyledText styledText(String text, int index) { |
| Matcher matcher = allOf(widgetOfType(StyledText.class), withText(text)); |
| return new SWTBotStyledText((StyledText) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotStyledText} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotStyledText styledTextWithId(String key, String value) { |
| return styledTextWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotStyledText styledTextWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(StyledText.class), withId(key, value)); |
| return new SWTBotStyledText((StyledText) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotStyledText} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotStyledText styledTextWithId(String value) { |
| return styledTextWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotStyledText styledTextWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(StyledText.class), withId(value)); |
| return new SWTBotStyledText((StyledText) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotStyledText styledTextInGroup(String inGroup) { |
| return styledTextInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotStyledText styledTextInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(StyledText.class), inGroup(inGroup)); |
| return new SWTBotStyledText((StyledText) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotStyledText} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotStyledText styledText() { |
| return styledText(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotStyledText styledText(int index) { |
| Matcher matcher = allOf(widgetOfType(StyledText.class)); |
| return new SWTBotStyledText((StyledText) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotStyledText styledTextWithLabelInGroup(String label, String inGroup) { |
| return styledTextWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotStyledText styledTextWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(StyledText.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotStyledText((StyledText) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotStyledText styledTextInGroup(String text, String inGroup) { |
| return styledTextInGroup(text, inGroup, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotStyledText} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotStyledText styledTextInGroup(String text, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(StyledText.class), withText(text), inGroup(inGroup)); |
| return new SWTBotStyledText((StyledText) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotDateTime} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotDateTime dateTimeWithLabel(String label) { |
| return dateTimeWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotDateTime} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotDateTime dateTimeWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(DateTime.class), withLabel(label)); |
| return new SWTBotDateTime((DateTime) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotDateTime} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotDateTime dateTimeWithId(String key, String value) { |
| return dateTimeWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotDateTime} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotDateTime dateTimeWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(DateTime.class), withId(key, value)); |
| return new SWTBotDateTime((DateTime) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotDateTime} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotDateTime dateTimeWithId(String value) { |
| return dateTimeWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotDateTime} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotDateTime dateTimeWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(DateTime.class), withId(value)); |
| return new SWTBotDateTime((DateTime) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotDateTime} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotDateTime dateTimeInGroup(String inGroup) { |
| return dateTimeInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotDateTime} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotDateTime dateTimeInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(DateTime.class), inGroup(inGroup)); |
| return new SWTBotDateTime((DateTime) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotDateTime} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotDateTime dateTime() { |
| return dateTime(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotDateTime} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotDateTime dateTime(int index) { |
| Matcher matcher = allOf(widgetOfType(DateTime.class)); |
| return new SWTBotDateTime((DateTime) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotDateTime} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotDateTime dateTimeWithLabelInGroup(String label, String inGroup) { |
| return dateTimeWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotDateTime} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotDateTime dateTimeWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(DateTime.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotDateTime((DateTime) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarButton toolbarButton(String mnemonicText) { |
| return toolbarButton(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarButton toolbarButton(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotToolbarPushButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarButton toolbarButtonWithTooltip(String tooltip) { |
| return toolbarButtonWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarButton toolbarButtonWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotToolbarPushButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarButton toolbarButtonWithId(String key, String value) { |
| return toolbarButtonWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarButton toolbarButtonWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(key, value), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotToolbarPushButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarButton toolbarButtonWithId(String value) { |
| return toolbarButtonWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarButton toolbarButtonWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(value), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotToolbarPushButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarButton toolbarButtonInGroup(String inGroup) { |
| return toolbarButtonInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarButton toolbarButtonInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotToolbarPushButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotToolbarButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarButton toolbarButton() { |
| return toolbarButton(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarButton toolbarButton(int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotToolbarPushButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarButton toolbarButtonInGroup(String mnemonicText, String inGroup) { |
| return toolbarButtonInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarButton toolbarButtonInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotToolbarPushButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarButton toolbarButtonWithTooltipInGroup(String tooltip, String inGroup) { |
| return toolbarButtonWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarButton toolbarButtonWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.PUSH, "SWT.PUSH")); |
| return new SWTBotToolbarPushButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarToggleButton toolbarToggleButton(String mnemonicText) { |
| return toolbarToggleButton(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarToggleButton toolbarToggleButton(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltip(String tooltip) { |
| return toolbarToggleButtonWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String key, String value) { |
| return toolbarToggleButtonWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(key, value), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String value) { |
| return toolbarToggleButtonWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(value), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String inGroup) { |
| return toolbarToggleButtonInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarToggleButton toolbarToggleButton() { |
| return toolbarToggleButton(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarToggleButton toolbarToggleButton(int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String mnemonicText, String inGroup) { |
| return toolbarToggleButtonInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltipInGroup(String tooltip, String inGroup) { |
| return toolbarToggleButtonWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarToggleButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK")); |
| return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarDropDownButton toolbarDropDownButton(String mnemonicText) { |
| return toolbarDropDownButton(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarDropDownButton toolbarDropDownButton(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), withStyle(SWT.DROP_DOWN, "SWT.DROP_DOWN")); |
| return new SWTBotToolbarDropDownButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonWithTooltip(String tooltip) { |
| return toolbarDropDownButtonWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), withStyle(SWT.DROP_DOWN, "SWT.DROP_DOWN")); |
| return new SWTBotToolbarDropDownButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonWithId(String key, String value) { |
| return toolbarDropDownButtonWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(key, value), withStyle(SWT.DROP_DOWN, "SWT.DROP_DOWN")); |
| return new SWTBotToolbarDropDownButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonWithId(String value) { |
| return toolbarDropDownButtonWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(value), withStyle(SWT.DROP_DOWN, "SWT.DROP_DOWN")); |
| return new SWTBotToolbarDropDownButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonInGroup(String inGroup) { |
| return toolbarDropDownButtonInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), inGroup(inGroup), withStyle(SWT.DROP_DOWN, "SWT.DROP_DOWN")); |
| return new SWTBotToolbarDropDownButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarDropDownButton toolbarDropDownButton() { |
| return toolbarDropDownButton(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarDropDownButton toolbarDropDownButton(int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withStyle(SWT.DROP_DOWN, "SWT.DROP_DOWN")); |
| return new SWTBotToolbarDropDownButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonInGroup(String mnemonicText, String inGroup) { |
| return toolbarDropDownButtonInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.DROP_DOWN, "SWT.DROP_DOWN")); |
| return new SWTBotToolbarDropDownButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonWithTooltipInGroup(String tooltip, String inGroup) { |
| return toolbarDropDownButtonWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarDropDownButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarDropDownButton toolbarDropDownButtonWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.DROP_DOWN, "SWT.DROP_DOWN")); |
| return new SWTBotToolbarDropDownButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarRadioButton toolbarRadioButton(String mnemonicText) { |
| return toolbarRadioButton(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarRadioButton toolbarRadioButton(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarRadioButton toolbarRadioButtonWithTooltip(String tooltip) { |
| return toolbarRadioButtonWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarRadioButton toolbarRadioButtonWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarRadioButton toolbarRadioButtonWithId(String key, String value) { |
| return toolbarRadioButtonWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarRadioButton toolbarRadioButtonWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(key, value), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarRadioButton toolbarRadioButtonWithId(String value) { |
| return toolbarRadioButtonWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarRadioButton toolbarRadioButtonWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(value), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarRadioButton toolbarRadioButtonInGroup(String inGroup) { |
| return toolbarRadioButtonInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarRadioButton toolbarRadioButtonInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), inGroup(inGroup), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarRadioButton toolbarRadioButton() { |
| return toolbarRadioButton(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarRadioButton toolbarRadioButton(int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarRadioButton toolbarRadioButtonInGroup(String mnemonicText, String inGroup) { |
| return toolbarRadioButtonInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarRadioButton toolbarRadioButtonInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotToolbarRadioButton toolbarRadioButtonWithTooltipInGroup(String tooltip, String inGroup) { |
| return toolbarRadioButtonWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotToolbarRadioButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotToolbarRadioButton toolbarRadioButtonWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.RADIO, "SWT.RADIO")); |
| return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @return a {@link SWTBotLink} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLink link(String mnemonicText) { |
| return link(mnemonicText, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLink} with the specified <code>mnemonicText</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLink link(String mnemonicText, int index) { |
| Matcher matcher = allOf(widgetOfType(Link.class), withMnemonic(mnemonicText)); |
| return new SWTBotLink((Link) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotLink} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLink linkWithId(String key, String value) { |
| return linkWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLink} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLink linkWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Link.class), withId(key, value)); |
| return new SWTBotLink((Link) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotLink} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLink linkWithId(String value) { |
| return linkWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLink} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLink linkWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Link.class), withId(value)); |
| return new SWTBotLink((Link) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotLink} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLink linkInGroup(String inGroup) { |
| return linkInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLink} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLink linkInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Link.class), inGroup(inGroup)); |
| return new SWTBotLink((Link) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotLink} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLink link() { |
| return link(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLink} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLink link(int index) { |
| Matcher matcher = allOf(widgetOfType(Link.class)); |
| return new SWTBotLink((Link) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotLink} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotLink linkInGroup(String mnemonicText, String inGroup) { |
| return linkInGroup(mnemonicText, inGroup, 0); |
| } |
| |
| /** |
| * @param mnemonicText the mnemonicText on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotLink} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotLink linkInGroup(String mnemonicText, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Link.class), withMnemonic(mnemonicText), inGroup(inGroup)); |
| return new SWTBotLink((Link) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSpinner spinnerWithLabel(String label) { |
| return spinnerWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSpinner spinnerWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Spinner.class), withLabel(label)); |
| return new SWTBotSpinner((Spinner) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSpinner spinner(String text) { |
| return spinner(text, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSpinner spinner(String text, int index) { |
| Matcher matcher = allOf(widgetOfType(Spinner.class), withText(text)); |
| return new SWTBotSpinner((Spinner) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSpinner spinnerWithTooltip(String tooltip) { |
| return spinnerWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSpinner spinnerWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(Spinner.class), withTooltip(tooltip)); |
| return new SWTBotSpinner((Spinner) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotSpinner} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSpinner spinnerWithId(String key, String value) { |
| return spinnerWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSpinner spinnerWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Spinner.class), withId(key, value)); |
| return new SWTBotSpinner((Spinner) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotSpinner} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSpinner spinnerWithId(String value) { |
| return spinnerWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSpinner spinnerWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Spinner.class), withId(value)); |
| return new SWTBotSpinner((Spinner) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSpinner spinnerInGroup(String inGroup) { |
| return spinnerInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSpinner spinnerInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Spinner.class), inGroup(inGroup)); |
| return new SWTBotSpinner((Spinner) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotSpinner} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSpinner spinner() { |
| return spinner(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSpinner spinner(int index) { |
| Matcher matcher = allOf(widgetOfType(Spinner.class)); |
| return new SWTBotSpinner((Spinner) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSpinner spinnerWithLabelInGroup(String label, String inGroup) { |
| return spinnerWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSpinner spinnerWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Spinner.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotSpinner((Spinner) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSpinner spinnerInGroup(String text, String inGroup) { |
| return spinnerInGroup(text, inGroup, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSpinner spinnerInGroup(String text, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Spinner.class), withText(text), inGroup(inGroup)); |
| return new SWTBotSpinner((Spinner) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSpinner spinnerWithTooltipInGroup(String tooltip, String inGroup) { |
| return spinnerWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSpinner} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSpinner spinnerWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Spinner.class), withTooltip(tooltip), inGroup(inGroup)); |
| return new SWTBotSpinner((Spinner) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSlider sliderWithLabel(String label) { |
| return sliderWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSlider sliderWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Slider.class), withLabel(label)); |
| return new SWTBotSlider((Slider) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSlider slider(String text) { |
| return slider(text, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSlider slider(String text, int index) { |
| Matcher matcher = allOf(widgetOfType(Slider.class), withText(text)); |
| return new SWTBotSlider((Slider) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSlider sliderWithTooltip(String tooltip) { |
| return sliderWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSlider sliderWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(Slider.class), withTooltip(tooltip)); |
| return new SWTBotSlider((Slider) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotSlider} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSlider sliderWithId(String key, String value) { |
| return sliderWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSlider sliderWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Slider.class), withId(key, value)); |
| return new SWTBotSlider((Slider) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotSlider} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSlider sliderWithId(String value) { |
| return sliderWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSlider sliderWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Slider.class), withId(value)); |
| return new SWTBotSlider((Slider) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSlider sliderInGroup(String inGroup) { |
| return sliderInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSlider sliderInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Slider.class), inGroup(inGroup)); |
| return new SWTBotSlider((Slider) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotSlider} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSlider slider() { |
| return slider(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSlider slider(int index) { |
| Matcher matcher = allOf(widgetOfType(Slider.class)); |
| return new SWTBotSlider((Slider) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSlider sliderWithLabelInGroup(String label, String inGroup) { |
| return sliderWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSlider sliderWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Slider.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotSlider((Slider) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSlider sliderInGroup(String text, String inGroup) { |
| return sliderInGroup(text, inGroup, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSlider sliderInGroup(String text, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Slider.class), withText(text), inGroup(inGroup)); |
| return new SWTBotSlider((Slider) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotSlider sliderWithTooltipInGroup(String tooltip, String inGroup) { |
| return sliderWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotSlider} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotSlider sliderWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Slider.class), withTooltip(tooltip), inGroup(inGroup)); |
| return new SWTBotSlider((Slider) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotBrowser} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotBrowser browserWithLabel(String label) { |
| return browserWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotBrowser} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotBrowser browserWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Browser.class), withLabel(label)); |
| return new SWTBotBrowser((Browser) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotBrowser} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotBrowser browserWithId(String key, String value) { |
| return browserWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotBrowser} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotBrowser browserWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Browser.class), withId(key, value)); |
| return new SWTBotBrowser((Browser) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotBrowser} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotBrowser browserWithId(String value) { |
| return browserWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotBrowser} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotBrowser browserWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Browser.class), withId(value)); |
| return new SWTBotBrowser((Browser) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotBrowser} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotBrowser browserInGroup(String inGroup) { |
| return browserInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotBrowser} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotBrowser browserInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Browser.class), inGroup(inGroup)); |
| return new SWTBotBrowser((Browser) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotBrowser} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotBrowser browser() { |
| return browser(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotBrowser} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotBrowser browser(int index) { |
| Matcher matcher = allOf(widgetOfType(Browser.class)); |
| return new SWTBotBrowser((Browser) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotBrowser} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotBrowser browserWithLabelInGroup(String label, String inGroup) { |
| return browserWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotBrowser} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotBrowser browserWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Browser.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotBrowser((Browser) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotScale} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotScale scaleWithLabel(String label) { |
| return scaleWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotScale} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotScale scaleWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(Scale.class), withLabel(label)); |
| return new SWTBotScale((Scale) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @return a {@link SWTBotScale} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotScale scale(String text) { |
| return scale(text, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotScale} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotScale scale(String text, int index) { |
| Matcher matcher = allOf(widgetOfType(Scale.class), withText(text)); |
| return new SWTBotScale((Scale) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotScale} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotScale scaleWithTooltip(String tooltip) { |
| return scaleWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotScale} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotScale scaleWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(Scale.class), withTooltip(tooltip)); |
| return new SWTBotScale((Scale) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotScale} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotScale scaleWithId(String key, String value) { |
| return scaleWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotScale} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotScale scaleWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Scale.class), withId(key, value)); |
| return new SWTBotScale((Scale) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotScale} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotScale scaleWithId(String value) { |
| return scaleWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotScale} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotScale scaleWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(Scale.class), withId(value)); |
| return new SWTBotScale((Scale) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotScale} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotScale scaleInGroup(String inGroup) { |
| return scaleInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotScale} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotScale scaleInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Scale.class), inGroup(inGroup)); |
| return new SWTBotScale((Scale) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotScale} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotScale scale() { |
| return scale(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotScale} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotScale scale(int index) { |
| Matcher matcher = allOf(widgetOfType(Scale.class)); |
| return new SWTBotScale((Scale) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotScale} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotScale scaleWithLabelInGroup(String label, String inGroup) { |
| return scaleWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotScale} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotScale scaleWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Scale.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotScale((Scale) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotScale} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotScale scaleInGroup(String text, String inGroup) { |
| return scaleInGroup(text, inGroup, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotScale} with the specified <code>text</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotScale scaleInGroup(String text, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Scale.class), withText(text), inGroup(inGroup)); |
| return new SWTBotScale((Scale) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotScale} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotScale scaleWithTooltipInGroup(String tooltip, String inGroup) { |
| return scaleWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotScale} with the specified <code>tooltip</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotScale scaleWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(Scale.class), withTooltip(tooltip), inGroup(inGroup)); |
| return new SWTBotScale((Scale) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotExpandBar} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotExpandBar expandBarWithLabel(String label) { |
| return expandBarWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotExpandBar} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotExpandBar expandBarWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(ExpandBar.class), withLabel(label)); |
| return new SWTBotExpandBar((ExpandBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotExpandBar} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotExpandBar expandBarWithId(String key, String value) { |
| return expandBarWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotExpandBar} with the specified <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotExpandBar expandBarWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ExpandBar.class), withId(key, value)); |
| return new SWTBotExpandBar((ExpandBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotExpandBar} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotExpandBar expandBarWithId(String value) { |
| return expandBarWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotExpandBar} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotExpandBar expandBarWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ExpandBar.class), withId(value)); |
| return new SWTBotExpandBar((ExpandBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotExpandBar} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotExpandBar expandBarInGroup(String inGroup) { |
| return expandBarInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotExpandBar} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotExpandBar expandBarInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ExpandBar.class), inGroup(inGroup)); |
| return new SWTBotExpandBar((ExpandBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotExpandBar} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotExpandBar expandBar() { |
| return expandBar(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotExpandBar} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotExpandBar expandBar(int index) { |
| Matcher matcher = allOf(widgetOfType(ExpandBar.class)); |
| return new SWTBotExpandBar((ExpandBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotExpandBar} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| public SWTBotExpandBar expandBarWithLabelInGroup(String label, String inGroup) { |
| return expandBarWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotExpandBar} with the specified <code>label</code> with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| */ |
| @SuppressWarnings({"unchecked", "rawtypes"}) |
| public SWTBotExpandBar expandBarWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ExpandBar.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotExpandBar((ExpandBar) widget(matcher, index), matcher); |
| } |
| |
| |
| private Matcher<? extends Widget> withLabel(String label) { |
| return WidgetMatcherFactory.withLabel(label, finder); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| public SWTBotProgressBar progressbarWithLabel(String label) { |
| return progressbarWithLabel(label, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>label</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| @SuppressWarnings({ "unchecked", "rawtypes" }) |
| public SWTBotProgressBar progressbarWithLabel(String label, int index) { |
| Matcher matcher = allOf(widgetOfType(ProgressBar.class), withLabel(label)); |
| return new SWTBotProgressBar((ProgressBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| public SWTBotProgressBar progressbar(String text) { |
| return progressbar(text, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>text</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| @SuppressWarnings({ "unchecked", "rawtypes" }) |
| public SWTBotProgressBar progressbar(String text, int index) { |
| Matcher matcher = allOf(widgetOfType(ProgressBar.class), withText(text)); |
| return new SWTBotProgressBar((ProgressBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| public SWTBotProgressBar progressbarWithTooltip(String tooltip) { |
| return progressbarWithTooltip(tooltip, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>tooltip</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| @SuppressWarnings({ "unchecked", "rawtypes" }) |
| public SWTBotProgressBar progressbarWithTooltip(String tooltip, int index) { |
| Matcher matcher = allOf(widgetOfType(ProgressBar.class), withTooltip(tooltip)); |
| return new SWTBotProgressBar((ProgressBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @return a {@link SWTBotProgressBar} with the specified |
| * <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| public SWTBotProgressBar progressbarWithId(String key, String value) { |
| return progressbarWithId(key, value, 0); |
| } |
| |
| /** |
| * @param key the key set on the widget. |
| * @param value the value for the key. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotProgressBar} with the specified |
| * <code>key/value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| @SuppressWarnings({ "unchecked", "rawtypes" }) |
| public SWTBotProgressBar progressbarWithId(String key, String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ProgressBar.class), withId(key, value)); |
| return new SWTBotProgressBar((ProgressBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param value the value for the key |
| * {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @return a {@link SWTBotProgressBar} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| public SWTBotProgressBar progressbarWithId(String value) { |
| return progressbarWithId(value, 0); |
| } |
| |
| /** |
| * @param value the value for the key |
| * {@link org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences#DEFAULT_KEY}. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>value</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| @SuppressWarnings({ "unchecked", "rawtypes" }) |
| public SWTBotProgressBar progressbarWithId(String value, int index) { |
| Matcher matcher = allOf(widgetOfType(ProgressBar.class), withId(value)); |
| return new SWTBotProgressBar((ProgressBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| public SWTBotProgressBar progressbarInGroup(String inGroup) { |
| return progressbarInGroup(inGroup, 0); |
| } |
| |
| /** |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| @SuppressWarnings({ "unchecked", "rawtypes" }) |
| public SWTBotProgressBar progressbarInGroup(String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ProgressBar.class), inGroup(inGroup)); |
| return new SWTBotProgressBar((ProgressBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @return a {@link SWTBotProgressBar} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| public SWTBotProgressBar progressbar() { |
| return progressbar(0); |
| } |
| |
| /** |
| * @param index the index of the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>none</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| @SuppressWarnings({ "unchecked", "rawtypes" }) |
| public SWTBotProgressBar progressbar(int index) { |
| Matcher matcher = allOf(widgetOfType(ProgressBar.class)); |
| return new SWTBotProgressBar((ProgressBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>label</code> |
| * with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| public SWTBotProgressBar progressbarWithLabelInGroup(String label, String inGroup) { |
| return progressbarWithLabelInGroup(label, inGroup, 0); |
| } |
| |
| /** |
| * @param label the label on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>label</code> |
| * with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| @SuppressWarnings({ "unchecked", "rawtypes" }) |
| public SWTBotProgressBar progressbarWithLabelInGroup(String label, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ProgressBar.class), withLabel(label), inGroup(inGroup)); |
| return new SWTBotProgressBar((ProgressBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>text</code> with |
| * the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| public SWTBotProgressBar progressbarInGroup(String text, String inGroup) { |
| return progressbarInGroup(text, inGroup, 0); |
| } |
| |
| /** |
| * @param text the text on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>text</code> with |
| * the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| @SuppressWarnings({ "unchecked", "rawtypes" }) |
| public SWTBotProgressBar progressbarInGroup(String text, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ProgressBar.class), withText(text), inGroup(inGroup)); |
| return new SWTBotProgressBar((ProgressBar) widget(matcher, index), matcher); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>tooltip</code> |
| * with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| public SWTBotProgressBar progressbarWithTooltipInGroup(String tooltip, String inGroup) { |
| return progressbarWithTooltipInGroup(tooltip, inGroup, 0); |
| } |
| |
| /** |
| * @param tooltip the tooltip on the widget. |
| * @param inGroup the inGroup on the widget. |
| * @param index the index of the widget. |
| * @return a {@link SWTBotProgressBar} with the specified <code>tooltip</code> |
| * with the specified <code>inGroup</code>. |
| * @throws WidgetNotFoundException if the widget is not found or is disposed. |
| * @since 2.8 |
| */ |
| @SuppressWarnings({ "unchecked", "rawtypes" }) |
| public SWTBotProgressBar progressbarWithTooltipInGroup(String tooltip, String inGroup, int index) { |
| Matcher matcher = allOf(widgetOfType(ProgressBar.class), withTooltip(tooltip), inGroup(inGroup)); |
| return new SWTBotProgressBar((ProgressBar) widget(matcher, index), matcher); |
| } |
| |
| } |