Package org.eclipse.egit.ui.test

Examples of org.eclipse.egit.ui.test.JobJoiner.join()


  private void fetch() throws Exception {
    SWTBotShell fetchDialog = openFetchDialog();
    fetchDialog.bot().button(IDialogConstants.NEXT_LABEL).click();
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.FETCH, 20, TimeUnit.SECONDS);
    fetchDialog.bot().button(IDialogConstants.FINISH_LABEL).click();
    jobJoiner.join();
  }

  private SWTBotShell openFetchDialog() throws Exception {
    SWTBotTree projectExplorerTree = TestUtil.getExplorerTree();
    getProjectItem(projectExplorerTree, PROJ1).select();
View Full Code Here


        util.getPluginLocalizedValue("TeamMenu.label"),
        util.getPluginLocalizedValue("SwitchToMenu.label"),
        branchToCheckout };
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.CHECKOUT, 60, TimeUnit.SECONDS);
    ContextMenuHelper.clickContextMenuSync(projectExplorerTree, menuPath);
    jobJoiner.join();
  }
}
View Full Code Here

  public void finish() {
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.PUSH, 60,
        TimeUnit.SECONDS);
    wizard.button(IDialogConstants.FINISH_LABEL).click();
    jobJoiner.join();
  }
}
View Full Code Here

    SWTBotView viewBot = bot.viewByTitle("Synchronize");
    SWTBotToolbarButton pushButton = viewBot.toolbarButton(UIText.GitActionContributor_Push);
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.PUSH, 30, TimeUnit.SECONDS);
    pushButton.click();
    jobJoiner.join();

    String destinationString = repositoryFile.getParentFile().getName() + " - " + "origin";
    SWTBotShell resultDialog = bot.shell(NLS.bind(UIText.PushResultDialog_title, destinationString));
    resultDialog.close();
View Full Code Here

    JobJoiner jobJoiner = JobJoiner.startListening(
        org.eclipse.egit.core.JobFamilies.INDEX_DIFF_CACHE_UPDATE, 30,
        TimeUnit.SECONDS);
    ContextMenuHelper.clickContextMenu(unstagedTree,
        UIText.StagingView_StageItemMenuLabel);
    jobJoiner.join();
  }

  public void commit() throws Exception {
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.COMMIT, 30,
        TimeUnit.SECONDS);
View Full Code Here

  public void commit() throws Exception {
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.COMMIT, 30,
        TimeUnit.SECONDS);
    stagingView.bot().button(UIText.StagingView_Commit).click();
    jobJoiner.join();
  }

  public void assertCommitEnabled(boolean expectEnabled) {
    boolean actual = stagingView.bot().button(UIText.StagingView_Commit)
        .isEnabled();
View Full Code Here

  public void finish() {
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.PUSH, 60,
        TimeUnit.SECONDS);
    wizard.button(IDialogConstants.FINISH_LABEL).click();
    jobJoiner.join();
  }
}
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.