Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarPushButton


                WidgetMatcherFactory.widgetOfType(ToolItem.class),
                WidgetMatcherFactory.withTooltip(toolTipText),
                WidgetMatcherFactory.withStyle(SWT.PUSH, "push")
                );
        ToolItem toolItem = (ToolItem) bot.widget(matcher);
        return new SWTBotToolbarPushButton(toolItem);
    }
View Full Code Here


    {
        JobWatcher watcher = new JobWatcher( BrowserCoreMessages.jobs__search_name );
        //bot.toolbarButton( "Search Again (F5)" ).click();
        Matcher matcher = allOf( widgetOfType( ToolItem.class ), withTooltip( "Search Again (F5)" ), withStyle(
            SWT.PUSH, "SWT.PUSH" ) );
        SWTBotToolbarPushButton button = new SWTBotToolbarPushButton( ( ToolItem ) bot.widget( matcher, 0 ), matcher );
        button.click();
        watcher.waitUntilDone();
    }
View Full Code Here

                    return l;

                for (ToolItem item : toolbar.getItems()) {
                    try {
                        if (SWTUtils.hasStyle(item, SWT.PUSH))
                            l.add(new SWTBotToolbarPushButton(item));
                        else if (SWTUtils.hasStyle(item, SWT.CHECK))
                            l.add(new SWTBotToolbarToggleButton(item));
                        else if (SWTUtils.hasStyle(item, SWT.RADIO))
                            l.add(new SWTBotToolbarRadioButton(item));
                        else if (SWTUtils.hasStyle(item, SWT.DROP_DOWN))
View Full Code Here

   * @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);
  }
View Full Code Here

   * @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);
  }
View Full Code Here

   * @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);
  }
View Full Code Here

   * @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);
  }
View Full Code Here

   * @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);
  }
View Full Code Here

   * @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);
  }
View Full Code Here

   * @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);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarPushButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.