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

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTable.rowCount()


   */
  public int getQuickfixListItemCount() {
    WaitForObjectCondition<SWTBotTable> quickFixTableCondition = quickFixAppears(anything());
    waitUntil(quickFixTableCondition);
    SWTBotTable quickFixTable = quickFixTableCondition.get(0);
    return quickFixTable.rowCount();
  }

  /**
   * Attempst to applys the quick fix.
   * <p>
 
View Full Code Here


   * @since 1.2
   */
  public List<String> getQuickFixes() throws QuickFixNotFoundException {
    SWTBotShell quickFixShell = activateQuickFixShell();
    SWTBotTable quickFixTable = getQuickFixTable(quickFixShell);
    int rowCount = quickFixTable.rowCount();
    List<String> result = new ArrayList<String>();
    for (int i = 0; i < rowCount; i++)
      result.add(quickFixTable.cell(i, 0));
    return result;
  }
View Full Code Here

   * @since 1.2
   */
  public int getQuickfixListItemCount() throws QuickFixNotFoundException {
    SWTBotShell quickFixShell = activateQuickFixShell();
    SWTBotTable quickFixTable = getQuickFixTable(quickFixShell);
    return quickFixTable.rowCount();
  }

  /**
   * Attempst to applys the quick fix.
   * <p>
 
View Full Code Here

   */
  public int getQuickfixListItemCount() {
    WaitForObjectCondition<SWTBotTable> quickFixTableCondition = quickFixAppears(any(SWTBotTable.class));
    waitUntil(quickFixTableCondition);
    SWTBotTable quickFixTable = quickFixTableCondition.get(0);
    return quickFixTable.rowCount();
  }

  /**
   * Attempst to applys the quick fix.
   * <p>
 
View Full Code Here

        SWTBotTable logTable = getLogTable();

        boolean isCellEditorActive = false;

        for (int i = 0; i < logTable.rowCount(); i++) {
            logTable.click(i, 0);
            // try to edit cell by F2 key
            logTable.pressShortcut(getKey(SWT.F2));
            waitForCellEditorState(logTableViewer, false);
            isCellEditorActive = logTableViewer.isCellEditorActive();
View Full Code Here

        // TODO: bot can`t push the SWT.Insert key while running this test. It is very disheartening.
        for (int i = 0; i < 3; i++) {
            filterTable.pressShortcut(getKey(SWT.INSERT));
        }

        boolean insertionByKeyWorks = (filterTable.rowCount() == 4);

        for (int i = 0; i < 4; i++) {
            // filterTable.getTableItem(0).select(); // select a first filter
            filterTable.pressShortcut(getKey(SWT.DEL));
        }
View Full Code Here

        for (int i = 0; i < 4; i++) {
            // filterTable.getTableItem(0).select(); // select a first filter
            filterTable.pressShortcut(getKey(SWT.DEL));
        }

        boolean delitionByKeyWorks = (filterTable.rowCount() == 0);

        // setPlaybackDelay(0);

        assertTrue(insertionByKeyWorks);
        assertTrue(delitionByKeyWorks);
View Full Code Here

  public void selectAndCloneRepository(String repoName) throws Exception {
    SWTBotShell importShell = bot.shell("Import Projects from Git")
        .activate();

    SWTBotTable table = bot.table(0);
    for (int i = 0; i < table.rowCount(); i++) {
      String rowName = table.getTableItem(i).getText();
      if (rowName != null && rowName.startsWith(repoName)) {
        table.select(i);
        break;
      }
View Full Code Here

  }

  @Test
  public void testOpenHistoryOnProject() throws Exception {
    SWTBotTable table = getHistoryViewTable(PROJ1);
    int rowCount = table.rowCount();
    assertTrue(table.rowCount() > 0);
    assertEquals(table.getTableItem(rowCount - 1).getText(1),
        "Initial commit");
  }
View Full Code Here

  @Test
  public void testOpenHistoryOnProject() throws Exception {
    SWTBotTable table = getHistoryViewTable(PROJ1);
    int rowCount = table.rowCount();
    assertTrue(table.rowCount() > 0);
    assertEquals(table.getTableItem(rowCount - 1).getText(1),
        "Initial commit");
  }

  @Test
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.