Examples of BoolResult


Examples of net.sf.swtbot.finder.UIThreadRunnable.BoolResult

  public String getFailureMessage() {
    return "The shell " + shell + " did not close.";
  }

  public boolean test() throws Exception {
    return UIThreadRunnable.syncExec(new BoolResult() {
      public boolean run() {
        return shell.widget.isDisposed() || !((Shell) shell.widget).isVisible();
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.results.BoolResult

   * @return <code>true</code> if the checkbox is checked. Otherwise <code>false</code>.
   * @since 1.3
   */
  public boolean isChecked() {
    assertIsCheck();
    return syncExec(new BoolResult() {
      public Boolean run() {
        return widget.getChecked();
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.results.BoolResult

  /**
   * @return <code>true</code> if the item is selected, false otherwise.
   * @since 2.0
   */
  public boolean isSelected() {
    return UIThreadRunnable.syncExec(new BoolResult() {
      public Boolean run() {
        return Arrays.asList(tree.getSelection()).contains(widget);
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.results.BoolResult

   * Checks if the item is selected.
   *
   * @return <code>true</code> if the radio button is selected. Otherwise <code>false</code>.
   */
  public boolean isSelected() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return widget.getSelection();
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.results.BoolResult

  InUIThread(Matcher<?> matcher) {
    this.matcher = matcher;
  }

  protected boolean doMatch(final Object obj) {
    return UIThreadRunnable.syncExec(new BoolResult() {
      public Boolean run() {
        return matcher.matches(obj);
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.results.BoolResult

   * Checks if the shell is open.
   *
   * @return <code>true</code> if the shell is visible, <code>false</code> otherwise.
   */
  public boolean isOpen() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return !widget.isDisposed() && widget.isVisible();
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.results.BoolResult

   * Checks if the shell is active.
   *
   * @return <code>true</code> if the shell is active, <code>false</code> otherwise.
   */
  public boolean isActive() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return display.getActiveShell() == widget;
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.results.BoolResult

    notify(SWT.FocusOut);
  }
 
  @Override
  public boolean isEnabled() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return widget.isEnabled();
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.results.BoolResult

    return new SWTBotMenu(menuItem, matcher);
  }

  @Override
  public boolean isEnabled() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return widget.isEnabled();
      }
    });
  }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.results.BoolResult

   * @return <code>true</code> if the menu is checked, <code>false</code> otherwise.
   * @see MenuItem#getSelection()
   * @since 1.2
   */
  public boolean isChecked() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return widget.getSelection();
      }
    });
  }
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.