Examples of SWTBotTable


Examples of net.sf.swtbot.widgets.SWTBotTable

        perspectiveMenu.click();
        SWTBotMenu otherMenu = windowMenu.menu( "Other..." );
        otherMenu.click();

        // select "LDAP" perspective
        SWTBotTable table = eBot.table();
        table.select( "LDAP" );

        // press "OK"
        SWTBotButton okButton = eBot.button( "OK" );
        okButton.click();
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotTable

   * @param tableLabel the label on the table.
   * @return a wrapper around a Table with the specified label
   * @throws WidgetNotFoundException if the widget is not found.
   */
  public SWTBotTable tableWithLabel(String tableLabel) throws WidgetNotFoundException {
    return new SWTBotTable(finder, tableLabel);
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotTable

   */
  public SWTBotTable table(int index) throws WidgetNotFoundException {
    List findControls = finder.findControls(new ClassMatcher(Table.class));
    if (findControls.isEmpty())
      throw new WidgetNotFoundException("Could not find any table");
    return new SWTBotTable((Table) findControls.get(index));
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotTable

   */
  public SWTBotTable table(SWTBotShell shell) throws WidgetNotFoundException {
    List findControls = finder.findControls(shell.widget, new ClassMatcher(Table.class), true);
    if (findControls.isEmpty())
      throw new WidgetNotFoundException("Could not find any table");
    return new SWTBotTable((Table) findControls.get(0));
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotTable

   * @throws QuickFixNotFoundException if the quickfix could not be found.
   * @throws WidgetNotFoundException if the quickfix could not be found.
   */
  public void quickfix(int quickFixIndex) throws QuickFixNotFoundException, WidgetNotFoundException {
    SWTBotShell quickFixShell = activateQuickFixShell();
    SWTBotTable quickFixTable = getQuickFixTable(quickFixShell);
    applyQuickFix(quickFixTable, quickFixIndex);
  }
View Full Code Here

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

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

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

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

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

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

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

   */
  private SWTBotTable getProposalTable() {
    log.debug("Finding table containing proposals.");
    try {
      Table table = (Table) bot.widget(widgetOfType(Table.class), activatePopupShell().widget);
      SWTBotTable swtBotTable = new SWTBotTable(table);
      log.debug(MessageFormat.format("Found table containing proposals -- {0}", getRows(swtBotTable)));
      return swtBotTable;
    } catch (Exception e) {
      throw new QuickFixNotFoundException("Quickfix options not found. Giving up.", e); //$NON-NLS-1$
    }
View Full Code Here

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

  @SuppressWarnings("all")
  public List<String> getAutoCompleteProposals(String insertText) {
    typeText(insertText);
    WaitForObjectCondition<SWTBotTable> autoCompleteAppears = autoCompleteAppears(tableWithRowIgnoringCase(insertText));
    waitUntil(autoCompleteAppears);
    final SWTBotTable autoCompleteTable = autoCompleteAppears.get(0);
    List<String> proposals = getRows(autoCompleteTable);
    makeProposalsDisappear();
    return proposals;
  }
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.