Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree


   */
  @Test
  public void testImportWizard() throws Exception {
    deleteAllProjects();
    assertProjectExistence(PROJ1, false);
    SWTBotTree tree = getOrOpenView().bot().tree();
    SWTBotTreeItem item = myRepoViewUtil.getRootItem(tree, repositoryFile);
    String wizardTitle = NLS.bind(
        UIText.GitCreateProjectViaWizardWizard_WizardTitle,
        repositoryFile.getPath());
    // start wizard from root item
View Full Code Here


  @Test
  public void testImportWizardGeneralProject() throws Exception {
    deleteAllProjects();
    assertProjectExistence(PROJ2, false);
    SWTBotTree tree = getOrOpenView().bot().tree();
    String wizardTitle = NLS.bind(
        UIText.GitCreateProjectViaWizardWizard_WizardTitle,
        repositoryFile.getPath());
    // start wizard from PROJ2
    myRepoViewUtil.getWorkdirItem(tree, repositoryFile).expand().getNode(
View Full Code Here

  public void testImportWizardGeneralProjectWithWorkingSet() throws Exception {
    deleteAllProjects();
    assertProjectExistence(PROJ1, false);
    String workingSetName = "myWorkingSet";
    removeWorkingSet(workingSetName);
    SWTBotTree tree = getOrOpenView().bot().tree();
    String wizardTitle = NLS.bind(
        UIText.GitCreateProjectViaWizardWizard_WizardTitle,
        repositoryFile.getPath());
    // start wizard from PROJ1
    myRepoViewUtil.getWorkdirItem(tree, repositoryFile).expand().getNode(
View Full Code Here

  @Test
  public void testLinkWithSelectionNavigator() throws Exception {
    deleteAllProjects();
    shareProjects(repositoryFile);
    SWTBotTree tree = getOrOpenView().bot().tree();
    myRepoViewUtil.getRootItem(tree, repositoryFile).select();
    // the selection should be root
    assertTrue(tree.selection().get(0, 0).startsWith(REPO1));

    SWTBotTree projectExplorerTree = TestUtil.getExplorerTree();
    getProjectItem(projectExplorerTree, PROJ1).select();

    // the selection should be still be root
    assertTrue(tree.selection().get(0, 0).startsWith(REPO1));
View Full Code Here

  @Test
  @Ignore("'Link with Selection' does not activate editor on selection change (bug 409722).")
  public void testLinkWithSelectionEditor() throws Exception {
    deleteAllProjects();
    shareProjects(repositoryFile);
    SWTBotTree tree = getOrOpenView().bot().tree();
    myRepoViewUtil.getRootItem(tree, repositoryFile).select();
    // the selection should be root
    assertTrue(tree.selection().get(0, 0).startsWith(REPO1));

    SWTBotView view = TestUtil.showExplorerView();
    SWTBotTree projectExplorerTree = view.bot().tree();

    SWTBotTreeItem item = getProjectItem(projectExplorerTree, PROJ1)
        .expand().getNode(FOLDER).expand().getNode(FILE1);
    view.show();
    item.doubleClick();
View Full Code Here

  }

  @Test
  public void testDeleteSingleBranch() throws Exception {
    // expand first level
    SWTBotTree tree = getOrOpenView().bot().tree();
    refreshAndWait();
    // create a branch (no checkout)
    SWTBotTreeItem localBranchesItem = myRepoViewUtil.getLocalBranchesItem(
        tree, repositoryFile).expand();
    SWTBotTreeItem masterNode = localBranchesItem.getNode("master");
View Full Code Here

  }

  @Test
  public void testDeleteMultipleBranches() throws Exception {
    // expand first level
    SWTBotTree tree = getOrOpenView().bot().tree();
    refreshAndWait();
    // open a branch (checkout)
    SWTBotTreeItem localBranchesItem = myRepoViewUtil.getLocalBranchesItem(
        tree, repositoryFile).expand();
    SWTBotTreeItem masterNode = localBranchesItem.getNode("master");
View Full Code Here

    assertEquals("stable", items[1].getText());
  }

  @Test
  public void testDeleteFileInProject() throws Exception {
    SWTBotTree tree = getOrOpenView().bot().tree();
    refreshAndWait();

    IProject project1 = ResourcesPlugin.getWorkspace().getRoot().getProject(PROJ1);
    // Make sure that the refresh doesn't happen on delete and cause a timeout
    project1.refreshLocal(IResource.DEPTH_INFINITE, null);
View Full Code Here

    assertThat(folder.getNodes(), hasItem(FILE2));
  }

  @Test
  public void testDeleteFileNotInProject() throws Exception {
    SWTBotTree tree = getOrOpenView().bot().tree();
    refreshAndWait();

    SWTBotTreeItem folder = findWorkdirNode(tree, PROJ2, FOLDER);
    folder.getNode(FILE1).select();
View Full Code Here

        .toolbarToggleButtonWithTooltip(
            UIText.CommitDialog_ShowUntrackedFiles);
    if (!showUntracked.isChecked())
      showUntracked.select();

    SWTBotTree tree = commitDialog.bot().tree();
    assertEquals("Wrong row count", 4, tree.rowCount());
    assertTreeLineContent(tree, 0, "GeneralProject/.project");
    assertTreeLineContent(tree, 1, "GeneralProject/folder/test.txt");
    assertTreeLineContent(tree, 2, "GeneralProject/folder/test2.txt");
    assertTreeLineContent(tree, 3, "ProjectWithoutDotProject/.project");
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.widgets.SWTBotTree

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.