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

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


  private Table        table;

  @Test
  public void waitsForTableToContainRows() throws Exception {
    keepAddingRowsInTable(table, 49);
    assertFalse(Conditions.tableHasRows(new SWTBotTable(table), 50).test());
    keepAddingRowsInTable(table, 1);
    assertTrue(Conditions.tableHasRows(new SWTBotTable(table), 50).test());
  }
View Full Code Here


   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotTable tableWithLabel(String label, int index) {
    Matcher matcher = allOf(widgetOfType(Table.class), withLabel(label));
    return new SWTBotTable((Table) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotTable tableWithId(String key, String value, int index) {
    Matcher matcher = allOf(widgetOfType(Table.class), withId(key, value));
    return new SWTBotTable((Table) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotTable tableWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(Table.class), withId(value));
    return new SWTBotTable((Table) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotTable tableInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Table.class), inGroup(inGroup));
    return new SWTBotTable((Table) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotTable table(int index) {
    Matcher matcher = allOf(widgetOfType(Table.class));
    return new SWTBotTable((Table) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotTable tableWithLabelInGroup(String label, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Table.class), withLabel(label), inGroup(inGroup));
    return new SWTBotTable((Table) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the quickfix could not be found.
   */
  public void quickfix(int quickFixIndex) {
    WaitForObjectCondition<SWTBotTable> quickFixTableCondition = quickFixAppears(any(SWTBotTable.class));
    waitUntil(quickFixTableCondition);
    SWTBotTable quickFixTable = quickFixTableCondition.get(0);
    selectProposal(quickFixTable, quickFixIndex);
  }
View Full Code Here

   * @since 1.2
   */
  public List<String> getQuickFixes() {
    WaitForObjectCondition<SWTBotTable> quickFixTableCondition = quickFixAppears(any(SWTBotTable.class));
    waitUntil(quickFixTableCondition);
    SWTBotTable quickFixTable = quickFixTableCondition.get(0);
    List<String> proposals = getRows(quickFixTable);
    makeProposalsDisappear();
    return proposals;
  }
View Full Code Here

   * @since 1.2
   */
  public int getQuickfixListItemCount() {
    WaitForObjectCondition<SWTBotTable> quickFixTableCondition = quickFixAppears(any(SWTBotTable.class));
    waitUntil(quickFixTableCondition);
    SWTBotTable quickFixTable = quickFixTableCondition.get(0);
    return quickFixTable.rowCount();
  }
View Full Code Here

TOP

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

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.