Package net.sf.swtbot.finder.UIThreadRunnable

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


   * @param fileName the filename to save screenshot to.
   * @return <code>true</code> if the screenshot was created and saved, <code>false</code> otherwise.
   * @since 1.0
   */
  public static boolean captureScreenshot(final String fileName) {
    return UIThreadRunnable.syncExec(new BoolResult() {
      public boolean run() {
        return captureScreenshotInternal(fileName);
      }
    });
  }
View Full Code Here


   * 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 ((Button) widget).getSelection();
      }
    });
  }
View Full Code Here

TOP

Related Classes of net.sf.swtbot.finder.UIThreadRunnable.BoolResult

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.