Package org.eclipse.swtbot.swt.finder.finders

Examples of org.eclipse.swtbot.swt.finder.finders.EventContextMenuFinder.unregister()


      List<MenuItem> menus = finder.findMenus(withMnemonic);
      if (menus.isEmpty())
        throw new WidgetNotFoundException("Could not find a menu item");
      return new SWTBotMenu(menus.get(0));
    } finally {
      finder.unregister();
    }
  }

  /**
   * Convenience API for {@link #contextMenu(String)}
View Full Code Here


      log.debug(findMenus);
      if (findMenus.isEmpty())
        throw new WidgetNotFoundException("Could not find a menu item"); //$NON-NLS-1$
      return new SWTBotMenu((MenuItem) findMenus.get(0), matcher);
    } finally {
      menuFinder.unregister();
    }
  }

  /**
   * Gets the arrow event.
View Full Code Here

      List<MenuItem> menus = finder.findMenus(withMnemonic(label));
      if (menus.isEmpty())
        throw new WidgetNotFoundException("Could not find a menu item");
      return new SWTBotMenu(menus.get(0));
    } finally {
      finder.unregister();
    }
  }

  /**
   * Convenience API for {@link #contextMenu(String)}
View Full Code Here

      notify(SWT.FocusOut);
      log.debug(MessageFormat.format("Clicked on {0}", this)); //$NON-NLS-1$
      List<MenuItem> findMenus = menuFinder.findMenus(new SWTBot().activeShell().widget, matcher, true);
      return toSWTBotMenuItems(matcher, findMenus);
    } finally {
      menuFinder.unregister();
    }
  }

  /**
   * Click on the tool item.
View Full Code Here

      notify(SWT.FocusOut);
      log.debug(MessageFormat.format("Clicked on {0}", this)); //$NON-NLS-1$
      List<MenuItem> findMenus = menuFinder.findMenus(new SWTBot().activeShell().widget, matcher, true);
      return toSWTBotMenuItems(matcher, findMenus);
    } finally {
      menuFinder.unregister();
    }
  }

  /**
   * Click on the tool item.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.