Examples of BoolResult


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

  public String getFailureMessage() {
    return "The shell " + shell + " did not close."; //$NON-NLS-1$ //$NON-NLS-2$
  }

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

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

  }

  public boolean test() throws Exception {
    try {
      final SWTBotShell shell = bot.shell(text);
      return UIThreadRunnable.syncExec(new BoolResult() {
        public Boolean run() {
          return shell.widget.isVisible() || shell.widget.isFocusControl();
        }
      });
    } catch (WidgetNotFoundException e) {
View Full Code Here

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

    event.item = widget;
    return event;
  }

  public boolean isActive() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return parent.getSelection() == widget;
      }
    });
  }
View Full Code Here

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

      }
    });
  }

  public boolean isEnabled() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return widget.getParent().isEnabled();
      }
    });
  }
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>.
   */
  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 checkbox is grayed, <code>false</code> otherwise.
   */
  public boolean isGrayed() {
    assertIsCheck();
    return syncExec(new BoolResult() {
      public Boolean run() {
        return widget.getGrayed();
      }
    });
  }
View Full Code Here

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

   * @return <code>true</code> if the widget is enabled.
   * @see Control#isEnabled()
   */
  public boolean isEnabled() {
    if (widget instanceof Control)
      return syncExec(new BoolResult() {
        public Boolean run() {
          return isEnabledInternal();
        }
      });
    return false;
View Full Code Here

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

   *
   * @return <code>true</code> if the widget is visible, <code>false</code> otherwise.
   * @since 1.0
   */
  public boolean isVisible() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        if (widget instanceof Control)
          return ((Control) widget).isVisible();
        return true;
      }
View Full Code Here

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

    if (!(widget instanceof Control))
      throw new UnsupportedOperationException("Can only traverse widgets of type Control. You're traversing a widget of type: " //$NON-NLS-1$
          + widget.getClass().getName());

    return syncExec(new BoolResult() {
      public Boolean run() {
        return ((Control) widget).traverse(traverse.type);
      }
    });
  }
View Full Code Here

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

  /**
   * @return <code>true</code> if this widget has focus.
   * @see Display#getFocusControl()
   */
  public boolean isActive() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return display.getFocusControl() == widget;
      }
    });
  }
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.