Package net.sf.swtbot.widgets

Examples of net.sf.swtbot.widgets.SWTBotShell


   * @since 1.2
   */
  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++) {
          TableItem tableItem = items[i];
          result.add(tableItem.getText());
        }
        return result;
      }
    });
    // makeProposalsDisappear();
    autoCompleteShell.close();
    return result;
  }
View Full Code Here


   * @param proposalText The text to propose.
   * @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.SWTBotShell

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.