Package org.eclipse.egit.ui.test

Examples of org.eclipse.egit.ui.test.JobJoiner


  public void next() {
    wizard.button(IDialogConstants.NEXT_LABEL).click();
  }

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


    String trackingBranch = Constants.R_REMOTES + "origin/master";
    launchSynchronization(Constants.HEAD, trackingBranch, false);

    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

  public void stageFile(String path) {
    SWTBotTree unstagedTree = stagingView.bot().tree(0);
    TestUtil.getNode(unstagedTree.getAllItems(), path).select();

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

        UIText.StagingView_StageItemMenuLabel);
    jobJoiner.join();
  }

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

  public void cancel() {
    wizard.button(IDialogConstants.CANCEL_LABEL).click();
  }

  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

Related Classes of org.eclipse.egit.ui.test.JobJoiner

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.