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

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


  public void testRevertFailure() throws Exception {
    touchAndSubmit(null);
    setTestFileContent("dirty in working directory"
        + System.currentTimeMillis());
    final SWTBotTable table = getHistoryViewTable(PROJ1);
    assertTrue(table.rowCount() > 0);
    table.getTableItem(0).select();
    final RevCommit[] commit = new RevCommit[1];

    Display.getDefault().syncExec(new Runnable() {
View Full Code Here


    Git git = Git.wrap(lookupRepository(repoFile));
    git.rm().addFilepattern(FILE1_PATH).call();
    RevCommit commit = git.commit().setMessage("Delete file").call();

    SWTBotTable commitsTable = getHistoryViewTable(PROJ1);
    assertEquals(commitCount + 1, commitsTable.rowCount());
    commitsTable.select(0);

    SWTBot viewBot = getHistoryViewBot();
    SWTBotTable fileDiffTable = viewBot.table(1);
    assertEquals(1, fileDiffTable.rowCount());
View Full Code Here

    assertEquals(commitCount + 1, commitsTable.rowCount());
    commitsTable.select(0);

    SWTBot viewBot = getHistoryViewBot();
    SWTBotTable fileDiffTable = viewBot.table(1);
    assertEquals(1, fileDiffTable.rowCount());

    fileDiffTable.select(0);
    assertFalse(fileDiffTable.contextMenu(
        UIText.CommitFileDiffViewer_OpenInEditorMenuLabel).isEnabled());
    fileDiffTable.contextMenu(
View Full Code Here

      }
    });
    assertNotNull(editorRef.get());
    SWTBotEditor commitEditor = bot.activeEditor();
    SWTBotTable table = commitEditor.bot().table(0);
    assertTrue(table.rowCount() > 0);
    table.select(0);
    ContextMenuHelper.clickContextMenuSync(table,
        UIText.CommitFileDiffViewer_ShowAnnotationsMenuLabel);
    TestUtil.joinJobs(JobFamilies.BLAME);
    assertFalse(commitEditor.getReference().equals(
View Full Code Here

    IncludesView view = new IncludesView( parent, SWT.NONE, project );

    SWTBotTable includeTable = findIncludeTable( view );
    SWTBotTable excludeTable = findExcludeTable( view );
    assertEquals( 0, includeTable.rowCount() );
    assertEquals( 0, excludeTable.rowCount() );
  }

  @Test
  public void loadDefaults() {
    IncludesView view = new IncludesView( parent, SWT.NONE, project );
View Full Code Here

    new TableItem( excludeTable.widget, SWT.NONE ).setText( "/bar/" );

    view.loadDefaults();

    assertEquals( 0, includeTable.rowCount() );
    assertEquals( 0, excludeTable.rowCount() );
  }

  @Test
  public void loadPreferences() {
    IncludesView view = new IncludesView( parent, SWT.NONE, project );
View Full Code Here

    view.loadPreferences( preferences );

    SWTBotTable includeTable = findIncludeTable( view );
    SWTBotTable excludeTable = findExcludeTable( view );
    assertEquals( 1, includeTable.rowCount() );
    assertEquals( 1, excludeTable.rowCount() );
    assertEquals( "/foo/", includeTable.getTableItem( 0 ).getText() );
    assertEquals( "/bar/", excludeTable.getTableItem( 0 ).getText() );
  }

  @Test
View Full Code Here

    preferences.setIncludePatterns( list( "/bar/" ) );
    view.loadPreferences( preferences );

    SWTBotTable table = findIncludeTable( view );
    assertEquals( 1, table.rowCount() );
    assertEquals( "/bar/", table.getTableItem( 0 ).getText() );
  }

  @Test
  public void storePreferences() {
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

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

  private List<String> getRows(SWTBotTable table) {
    int rowCount = table.rowCount();
    List<String> result = new ArrayList<String>();
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.