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

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem.cell()


        .getTreeItem(
            UIText.BranchPropertySource_UpstreamConfigurationCategory);
    SWTBotTreeItem rebaseItem = rootItem.expand().getNode(
        UIText.BranchPropertySource_RebaseDescriptor);
    assertEquals(UIText.BranchPropertySource_ValueNotSet,
        rebaseItem.cell(1));

    SWTBotTreeItem remoteItem = rootItem.expand().getNode(
        UIText.BranchPropertySource_RemoteDescriptor);
    assertEquals("origin", remoteItem.cell(1));
View Full Code Here


    assertEquals(UIText.BranchPropertySource_ValueNotSet,
        rebaseItem.cell(1));

    SWTBotTreeItem remoteItem = rootItem.expand().getNode(
        UIText.BranchPropertySource_RemoteDescriptor);
    assertEquals("origin", remoteItem.cell(1));

    SWTBotTreeItem upstreamItem = rootItem.expand().getNode(
        UIText.BranchPropertySource_UpstreamBranchDescriptor);
    assertEquals("refs/heads/master", upstreamItem.cell(1));
View Full Code Here

        UIText.BranchPropertySource_RemoteDescriptor);
    assertEquals("origin", remoteItem.cell(1));

    SWTBotTreeItem upstreamItem = rootItem.expand().getNode(
        UIText.BranchPropertySource_UpstreamBranchDescriptor);
    assertEquals("refs/heads/master", upstreamItem.cell(1));

    view = getOrOpenView();

    localItem = myRepoViewUtil.getLocalBranchesItem(view.bot().tree(),
        clonedRepositoryFile);
View Full Code Here

  }

  private void assertTreeLineContent(SWTBotTree tree, int rowIndex,
      String file) {
    SWTBotTreeItem treeItem = tree.getAllItems()[rowIndex];
    assertEquals(file, treeItem.cell(1));
  }

  private void selectAllCheckboxes(SWTBotTree tree) {
    for (int i = 0; i < tree.rowCount(); i++) {
      tree.getAllItems()[i].check();
View Full Code Here

            subteeItems.getItems());
        for (int j = 0; j < subrows.length; ++j) {
          Row r = subrows[j];
          assertEquals(r.isSelected(),
              subteeItems.getItems()[j].isChecked());
          assertEquals(r.getProject(), subteeItems.cell(j, 0));
          assertEquals(r.getPath(), subteeItems.cell(j, 1));
          assertEquals(r.getRepository(), subteeItems.cell(j, 2));
        }
      } else
        assertEquals("Row " + i + " is a tree:", 0,
View Full Code Here

        for (int j = 0; j < subrows.length; ++j) {
          Row r = subrows[j];
          assertEquals(r.isSelected(),
              subteeItems.getItems()[j].isChecked());
          assertEquals(r.getProject(), subteeItems.cell(j, 0));
          assertEquals(r.getPath(), subteeItems.cell(j, 1));
          assertEquals(r.getRepository(), subteeItems.cell(j, 2));
        }
      } else
        assertEquals("Row " + i + " is a tree:", 0,
            subteeItems.getItems().length);
View Full Code Here

          Row r = subrows[j];
          assertEquals(r.isSelected(),
              subteeItems.getItems()[j].isChecked());
          assertEquals(r.getProject(), subteeItems.cell(j, 0));
          assertEquals(r.getPath(), subteeItems.cell(j, 1));
          assertEquals(r.getRepository(), subteeItems.cell(j, 2));
        }
      } else
        assertEquals("Row " + i + " is a tree:", 0,
            subteeItems.getItems().length);
    }
View Full Code Here

    return commitDialog.bot().tree().rowCount();
  }

  public String getEntryText(int rowIndex) {
    SWTBotTreeItem treeItem = commitDialog.bot().tree().getAllItems()[rowIndex];
    return treeItem.cell(1);
  }

  public String getCommitMessage() {
    return commitDialog.bot()
        .styledTextWithLabel(UIText.CommitDialog_CommitMessage)
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.