Examples of SWTBotView


Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView

    TestUtil.showExplorerView();
  }

  @After
  public void closeSynchronizeView() {
    SWTBotView syncView = bot.viewByTitle("Synchronize");
    syncView.close();
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView

  }

  @Test
  public void testOpenHistory() throws Exception {
    try {
      SWTBotView view = bot.viewById(IHistoryView.VIEW_ID);
      view.close();
    } catch (Exception e) {
      // ignore
    }

    SWTBotTree projectExplorerTree = TestUtil.getExplorerTree();
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView

  }

  @Test
  public void testOpenRepoView() throws Exception {
    try {
      SWTBotView view = bot.viewById(RepositoriesView.VIEW_ID);
      view.close();
    } catch (Exception e) {
      // ignore
    }

    SWTBotTree projectExplorerTree = TestUtil.getExplorerTree();
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView

    setTestFileContent(content);
    TestUtil.joinJobs(JobFamilies.INDEX_DIFF_CACHE_UPDATE);
  }

  private void selectRepositoryNode() throws Exception {
    SWTBotView repositoriesView = TestUtil
        .showView(RepositoriesView.VIEW_ID);
    SWTBotTree tree = repositoriesView.bot().tree();

    SWTBotTreeItem repoNode = repoViewUtil
        .getRootItem(tree, repositoryFile);
    repoNode.select();
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView

      tree.getAllItems()[i].check();
    }
  }

  private void clickOnCommit() throws Exception {
    SWTBotView repoView = TestUtil.showView(RepositoriesView.VIEW_ID);
    SWTBotTree tree = repoView.bot().tree();
    TestUtil.waitUntilTreeHasNodeContainsText(bot, tree, REPO1, 10000);
    tree.getAllItems()[0].contextMenu("Commit...").click();
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView

        }
      }
    });

    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.widgets.SWTBotView

  public static SWTBotView showExplorerView() {
    return showView("org.eclipse.jdt.ui.PackageExplorer");
  }

  public static SWTBotTree getExplorerTree() {
    SWTBotView view = showExplorerView();
    return view.bot().tree();
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView

    ObjectId headId = repository.resolve(Constants.HEAD);

    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";
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView

   *            0: none, 1: repository, 2: project, 3: folder
   * @throws Exception
   */
  private void initFilter(int filter) throws Exception {
    getHistoryViewTable(PROJ1);
    SWTBotView view = bot
        .viewById("org.eclipse.team.ui.GenericHistoryView");
    SWTBotToolbarToggleButton folder = (SWTBotToolbarToggleButton) view
        .toolbarButton(UIText.GitHistoryPage_AllInParentTooltip);
    SWTBotToolbarToggleButton project = (SWTBotToolbarToggleButton) view
        .toolbarButton(UIText.GitHistoryPage_AllInProjectTooltip);
    SWTBotToolbarToggleButton repo = (SWTBotToolbarToggleButton) view
        .toolbarButton(UIText.GitHistoryPage_AllInRepoTooltip);
    switch (filter) {
    case 0:
      if (folder.isChecked())
        folder.click();
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView

    item.setText(item.getText()); // TODO: is there a better solution?
  }

  private void toggleShowAllBranchesButton(boolean checked) throws Exception{
    getHistoryViewTable(PROJ1);
    SWTBotView view = bot
        .viewById("org.eclipse.team.ui.GenericHistoryView");
    SWTBotToolbarToggleButton showAllBranches = (SWTBotToolbarToggleButton) view
        .toolbarButton(UIText.GitHistoryPage_showAllBranches);
    boolean isChecked = showAllBranches.isChecked();
    if(isChecked && !checked || !isChecked && checked)
      showAllBranches.click();
  }
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.