Examples of SWTWorkbenchBot


Examples of org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot

    ContextMenuHelper.clickContextMenu(projectTree, "Team", pushBranchMenu);
    return forBranchName(branchName);
  }

  public static PushBranchWizardTester forBranchName(String branchName) {
    SWTWorkbenchBot bot = new SWTWorkbenchBot();
    String title = MessageFormat.format(
        UIText.PushBranchWizard_WindowTitle, branchName);
    SWTBot wizard = bot.shell(title).bot();
    return new PushBranchWizardTester(wizard);
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot

      }
    });
  }

  public static SWTBotShell botForShellStartingWith(final String titlePrefix) {
    SWTWorkbenchBot bot = new SWTWorkbenchBot();

    Matcher<Shell> matcher = new TypeSafeMatcher<Shell>() {
      @Override
      protected boolean matchesSafely(Shell item) {
        String title = item.getText();
        return title != null && title.startsWith(titlePrefix);
      }

      public void describeTo(Description description) {
        description.appendText("Shell with title starting with '"
            + titlePrefix + "'");
      }
    };

    Shell shell = bot.widget(matcher);
    return new SWTBotShell(shell);
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot

              + " failed.", e);
        }
      }
    });

    SWTWorkbenchBot bot = new SWTWorkbenchBot();
    SWTBotView viewbot = bot.viewById(viewId);
    assertNotNull("View with ID " + viewId + " not found via SWTBot.",
        viewbot);
    return viewbot;
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot

public class Eclipse {

  private final SWTWorkbenchBot bot;

  public Eclipse() {
    this.bot = new SWTWorkbenchBot();
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot

    commitDialog = dialogShell;
  }

  public static CommitDialogTester openCommitDialog(String projectName) {
    clickCommitAction(projectName);
    SWTWorkbenchBot workbenchBot = new SWTWorkbenchBot();
    SWTBotShell shell = workbenchBot
        .shell(UIText.CommitDialog_CommitChanges);
    return new CommitDialogTester(shell);
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot

  }

  public static NoFilesToCommitPopup openCommitDialogExpectNoFilesToCommit(
      String projectName) throws Exception {
    clickCommitAction(projectName);
    SWTWorkbenchBot workbenchBot = new SWTWorkbenchBot();
    return new NoFilesToCommitPopup(
        workbenchBot.shell(UIText.CommitAction_noFilesToCommit));
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot

      this.shell = shell;
    }

    public CommitDialogTester confirmPopup() {
      shell.bot().button(IDialogConstants.YES_LABEL).click();
      SWTWorkbenchBot workbenchBot = new SWTWorkbenchBot();
      SWTBotShell commitDialogShell = workbenchBot
          .shell(UIText.CommitDialog_CommitChanges);
      return new CommitDialogTester(commitDialogShell);
    }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot

    return forShell();
  }

  public static PushTagsWizardTester forShell() {
    SWTWorkbenchBot bot = new SWTWorkbenchBot();
    SWTBot wizard = bot.shell(UIText.PushTagsWizard_WindowTitle).bot();
    return new PushTagsWizardTester(wizard);
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot

  /**
   * @return A new workbench that provides convenience API to access common features of the Eclipse workbench.
   */
  public static Workbench workbench() {
    return workbench(new SWTWorkbenchBot());
  }
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.