Package org.eclipse.egit.ui.test

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


  protected void refreshAndWait() throws Exception {
    RepositoriesView view = (RepositoriesView) getOrOpenView()
        .getReference().getPart(false);
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.REPO_VIEW_REFRESH, 60, TimeUnit.SECONDS);
    view.refresh();
    jobJoiner.join();
  }

  @SuppressWarnings("boxing")
  protected void assertProjectExistence(String projectName, boolean existence) {
    IProject prj = ResourcesPlugin.getWorkspace().getRoot().getProject(
View Full Code Here


  private void runPush(SWTBotTree tree) {
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.PUSH, 60, TimeUnit.SECONDS);
    ContextMenuHelper.clickContextMenuSync(tree, myUtil
        .getPluginLocalizedValue("SimplePushCommand"));
    jobJoiner.join();
  }

  private void runFetch(SWTBotTree tree) {
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.FETCH, 60, TimeUnit.SECONDS);
    ContextMenuHelper.clickContextMenuSync(tree, myUtil
View Full Code Here

  private void runFetch(SWTBotTree tree) {
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.FETCH, 60, TimeUnit.SECONDS);
    ContextMenuHelper.clickContextMenuSync(tree, myUtil
        .getPluginLocalizedValue("SimpleFetchCommand"));
    jobJoiner.join();
  }
}
View Full Code Here

    JobJoiner jobJoiner = JobJoiner.startListening(
        ISynchronizeManager.FAMILY_SYNCHRONIZE_OPERATION, 60,
        TimeUnit.SECONDS);
    GitModelSynchronize.launch(data, new IResource[] { project });
    jobJoiner.join();
  }

  protected void setEnabledModelProvider(String modelProviderId) {
    ITeamContentProviderManager contentProviderManager = TeamUI.getTeamContentProviderManager();
    ITeamContentProviderDescriptor descriptor = contentProviderManager.getDescriptor(modelProviderId);
View Full Code Here

    JobJoiner jobJoiner = JobJoiner.startListening(
        ISynchronizeManager.FAMILY_SYNCHRONIZE_OPERATION, 60,
        TimeUnit.SECONDS);
    dialog.bot().button(IDialogConstants.OK_LABEL).click();
    jobJoiner.join();

    closeFirstEmptySynchronizeDialog();

    assertSynchronizeNoChange();
View Full Code Here

    jobJoiner = JobJoiner.startListening(
        ISynchronizeManager.FAMILY_SYNCHRONIZE_OPERATION, 60,
        TimeUnit.SECONDS);
    dialog.bot().button(IDialogConstants.OK_LABEL).click();
    jobJoiner.join();

    assertSynchronizeFile1Changed();
  }

  @Test
View Full Code Here

    JobJoiner jobJoiner = JobJoiner.startListening(
        ISynchronizeManager.FAMILY_SYNCHRONIZE_OPERATION, 60,
        TimeUnit.SECONDS);
    dialog.bot().button(UIText.CompareTargetSelectionDialog_CompareButton)
        .click();
    jobJoiner.join();

    closeFirstEmptySynchronizeDialog();

    assertSynchronizeNoChange();
View Full Code Here

    jobJoiner = JobJoiner.startListening(
        ISynchronizeManager.FAMILY_SYNCHRONIZE_OPERATION, 60,
        TimeUnit.SECONDS);
    dialog.bot().button(UIText.CompareTargetSelectionDialog_CompareButton)
        .click();
    jobJoiner.join();

    assertSynchronizeFile1Changed();
  }

  @Test
View Full Code Here

  private void clickCompareWithAndWaitForSync(String menuLabel) {
    JobJoiner jobJoiner = JobJoiner.startListening(
        ISynchronizeManager.FAMILY_SYNCHRONIZE_OPERATION, 60,
        TimeUnit.SECONDS);
    clickCompareWith(menuLabel);
    jobJoiner.join();
  }

  private SWTBotShell openCompareWithDialog(String menuLabel,
      String dialogTitle) {
    SWTBotTree projectExplorerTree = selectProjectItem();
View Full Code Here

  private void executeReplace(SWTBotShell dialog) {
    JobJoiner jobJoiner = JobJoiner.startListening(
        JobFamilies.DISCARD_CHANGES, 30, TimeUnit.SECONDS);
    dialog.bot().button(IDialogConstants.OK_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.