Package org.eclipse.swtbot.swt.finder.waits

Examples of org.eclipse.swtbot.swt.finder.waits.ICondition


    protected void clickButton( final String buttonTitle )
    {
        final SWTBotButton button = bot.button( buttonTitle );
        if ( !button.isEnabled() )
        {
            bot.waitUntil( new ICondition()
            {

                public boolean test() throws Exception
                {
                    return button.isEnabled();
View Full Code Here


    private void select( final SWTBotTreeItem entry )
    {
        if ( !getBrowserTree().isEnabled() )
        {
            bot.waitUntil( new ICondition()
            {

                public boolean test() throws Exception
                {
                    return getBrowserTree().isEnabled();
View Full Code Here

   * @throws TimeoutException
   */
  public static void waitUntilTreeHasNodeContainsText(SWTBot bot,
      final SWTBotTree tree, final String text, long timeout)
      throws TimeoutException {
    bot.waitUntil(new ICondition() {

      public boolean test() throws Exception {
        for (SWTBotTreeItem item : tree.getAllItems())
          if (item.getText().contains(text))
            return true;
View Full Code Here

   * @throws TimeoutException
   */
  public static void waitUntilTreeHasNodeContainsText(SWTBot bot,
      final SWTBotTreeItem treeItem, final String text, long timeout)
      throws TimeoutException {
    bot.waitUntil(new ICondition() {

      public boolean test() throws Exception {
        for (SWTBotTreeItem item : treeItem.getItems())
          if (item.getText().contains(text))
            return true;
View Full Code Here

   * @throws TimeoutException
   */
  public static void waitUntilTreeHasSelectedNodeWithText(SWTBot bot,
      final SWTBotTree tree, final String text, long timeout)
      throws TimeoutException {
    bot.waitUntil(new ICondition() {

      public boolean test() throws Exception {
        return tree.selection().get(0, 0).equals(text);
      }

View Full Code Here

   * @param timeout
   * @throws TimeoutException
   */
  public static void waitUntilTableHasRowWithText(SWTBot bot, final SWTBotTable table,
      final String text, long timeout) throws TimeoutException {
    bot.waitUntil(new ICondition() {

      public boolean test() throws Exception {
        if (table.indexOf(text)<0)
          return false;
        return true;
View Full Code Here

    }, timeout);
  }

  public static void waitUntilEditorIsActive(SWTWorkbenchBot bot,
      final SWTBotEditor editor, long timeout) {
    bot.waitUntil(new ICondition() {

      public boolean test() throws Exception {
        return editor.isActive();
      }
View Full Code Here

          assertSame(projectImage, showUndeleted.bot().tree()
              .getAllItems()[0].widget.getImage());
        }
      });

      ICondition treeEmpty = new ICondition() {

        public boolean test() throws Exception {
          return showUndeleted.bot().tree().getAllItems().length == 0;
        }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.waits.ICondition

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.