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

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


  }

  public SWTBotMenu contextMenu(String label) throws WidgetNotFoundException {
    EventContextMenuFinder finder = new EventContextMenuFinder();
    try {
      finder.register();
      notify(SWT.MenuDetect);
      Matcher<MenuItem> withMnemonic = withMnemonic(label);
      List<MenuItem> menus = finder.findMenus(withMnemonic);
      if (menus.isEmpty())
        throw new WidgetNotFoundException("Could not find a menu item");
View Full Code Here


   * @since 1.0
   */
  public SWTBotMenu menuItem(String menuItem) throws WidgetNotFoundException {
    EventContextMenuFinder menuFinder = new EventContextMenuFinder();
    try {
      menuFinder.register();
      log.debug(MessageFormat.format("Clicking on {0}", this)); //$NON-NLS-1$
      assertEnabled();
      notify(SWT.MouseEnter);
      notify(SWT.MouseMove);
      notify(SWT.Activate);
View Full Code Here

  }

  public SWTBotMenu contextMenu(String label) throws WidgetNotFoundException {
    EventContextMenuFinder finder = new EventContextMenuFinder();
    try {
      finder.register();
      notify(SWT.MenuDetect);
      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));
View Full Code Here

   * @throws WidgetNotFoundException if the menuItem could not be found
   */
  public List<? extends SWTBotMenu> menuItems(Matcher<MenuItem> matcher) {
    EventContextMenuFinder menuFinder = new EventContextMenuFinder();
    try {
      menuFinder.register();
      log.debug(MessageFormat.format("Clicking on {0}", this)); //$NON-NLS-1$
      assertEnabled();
      notify(SWT.MouseEnter);
      notify(SWT.MouseMove);
      notify(SWT.Activate);
View Full Code Here

   * @throws WidgetNotFoundException if the menuItem could not be found
   */
  public List<? extends SWTBotMenu> menuItems(Matcher<MenuItem> matcher) {
    EventContextMenuFinder menuFinder = new EventContextMenuFinder();
    try {
      menuFinder.register();
      log.debug(MessageFormat.format("Clicking on {0}", this)); //$NON-NLS-1$
      waitForEnabled();
      notify(SWT.MouseEnter);
      notify(SWT.MouseMove);
      notify(SWT.Activate);
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.