Package net.sf.swtbot.widgets

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


   * @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

   */
  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

   */
  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

   * @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

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

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

   * @throws QuickFixNotFoundException if the quickfix could not be found.
   * @since 1.2
   */
  public int getQuickfixListItemCount() throws QuickFixNotFoundException {
    SWTBotShell quickFixShell = activateQuickFixShell();
    SWTBotTable quickFixTable = getQuickFixTable(quickFixShell);
    return quickFixTable.rowCount();
  }
View Full Code Here

   */
  public List getAutoCompleteProposals(String insertText) throws QuickFixNotFoundException, TimeoutException {
    styledText.typeText(insertText);
    bot.sleep(1000);
    SWTBotShell autoCompleteShell = activateAutoCompleteShell();
    final SWTBotTable autoCompleteTable = getQuickFixTable(autoCompleteShell);
    List result = syncExec(new ListResult() {
      public List run() {
        TableItem[] items = ((Table) autoCompleteTable.widget).getItems();
        ArrayList result = new ArrayList();
        for (int i = 0; i < items.length; i++) {
View Full Code Here

   * @throws QuickFixNotFoundException Thrown if the quick fix error occurs.
   */
  private void autoComplete(String proposalText) throws QuickFixNotFoundException {
    int retries = 10;
    SWTBotShell autoCompleteShell = activateAutoCompleteShell();
    SWTBotTable autoCompleteTable = getQuickFixTable(autoCompleteShell);
    applyQuickFix(autoCompleteTable, proposalText, retries);
  }
View Full Code Here

TOP

Related Classes of net.sf.swtbot.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.