Package net.sf.swtbot.finder.UIThreadRunnable

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


   * @param shell the shell.
   * @return the menu in the shell.
   * @see Shell#getMenuBar()
   */
  protected Menu menuBar(final Shell shell) {
    return (Menu) UIThreadRunnable.syncExec(display, new WidgetResult() {
      public Widget run() {
        return shell.getMenuBar();
      }
    });

View Full Code Here


   * @param composite The composite to use.
   * @return The {@link StyledText} item.
   */
  private StyledText findEditor(final Composite composite) {
    final ClassMatcher classMatcher = new ClassMatcher(StyledText.class);
    return (StyledText) syncExec(new WidgetResult() {
      public Widget run() {
        StyledText styledText = null;
        try {
          List findControls = finder.findControls(composite, classMatcher, true);
          styledText = (StyledText) findControls.get(0);
View Full Code Here

TOP

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

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.