Package org.eclipse.swtbot.swt.finder.results

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


      }
    });
  }

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


   * @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

   *
   * @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

    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

  /**
   * @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

  /**
   * @return <code>true</code> if the button is checked, <code>false</code> otherwise.
   */
  public boolean isChecked() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return widget.getSelection();
      }
    });
  }
View Full Code Here

  /**
   * @return <code>true</code> if the item is expanded, <code>false</code> otherwise.
   * @see #isCollapsed()
   */
  public boolean isExpanded() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return widget.getExpanded();
      }
    });
  }
View Full Code Here

  /**
   * @return <code>true</code> if the button is checked, <code>false</code> otherwise.
   */
  public boolean isChecked() {
    return syncExec(new BoolResult() {
      public Boolean run() {
        return widget.getSelection();
      }
    });
  }
View Full Code Here

    return new SWTBotMenu(menuItem, matcher);
  }

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

   * @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

Related Classes of org.eclipse.swtbot.swt.finder.results.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.