Package net.sf.swtbot.widgets

Examples of net.sf.swtbot.widgets.SWTBotToolbarButtonWithToolTip


   * @return a wrapper around the toolbar button with the specified text.
   * @throws WidgetNotFoundException if the widget is not found.
   * @since 1.0
   */
  public SWTBotToolbarButton toolbarButtonWithTooltip(String tooltip) throws WidgetNotFoundException {
    return new SWTBotToolbarButtonWithToolTip(finder, tooltip);
  }
View Full Code Here


   * @return a wrapper around the toolbar button with the specified text.
   * @throws WidgetNotFoundException if the widget is not found.
   * @since 1.0
   */
  public SWTBotToolbarButton toolbarButtonWithTooltip(String tooltip, int index) throws WidgetNotFoundException {
    return new SWTBotToolbarButtonWithToolTip(finder, tooltip, index);
  }
View Full Code Here

        List l = new ArrayList();
        ToolItem[] items = toolbar.getItems();
        for (int i = 0; i < items.length; i++) {
          try {
            l.add(new SWTBotToolbarButtonWithToolTip(items[i]));
          } catch (WidgetNotFoundException e) {
            log.warn("Failed to find widget " + items[i].getText(), e);
          }
        }
View Full Code Here

  public SWTBotToolbarButtonWithToolTip toolbarButton(String tooltip) throws WidgetNotFoundException {

    List l = getToolbarButtons();

    for (int i = 0; i < l.size(); i++) {
      SWTBotToolbarButtonWithToolTip item = (SWTBotToolbarButtonWithToolTip) l.get(i);

      if (item.getToolTipText().equals(tooltip)) {
        return item;
      }
    }

    throw new WidgetNotFoundException("Unable to find toolitem with the given tooltip '" + tooltip + "'");
View Full Code Here

   * @return a wrapper around the toolbar button with the specified text.
   * @throws WidgetNotFoundException if the widget is not found.
   * @since 1.0
   */
  public SWTBotToolbarButton toolbarButtonWithTooltip(String tooltip) throws WidgetNotFoundException {
    return new SWTBotToolbarButtonWithToolTip(finder, tooltip);
  }
View Full Code Here

   * @return a wrapper around the toolbar button with the specified text.
   * @throws WidgetNotFoundException if the widget is not found.
   * @since 1.0
   */
  public SWTBotToolbarButton toolbarButtonWithTooltip(String tooltip, int index) throws WidgetNotFoundException {
    return new SWTBotToolbarButtonWithToolTip(finder, tooltip, index);
  }
View Full Code Here

TOP

Related Classes of net.sf.swtbot.widgets.SWTBotToolbarButtonWithToolTip

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.