Examples of SWTBotTable


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

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

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

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

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

   * @throws QuickFixNotFoundException if the table could not be found.
   */
  protected SWTBotTable getQuickFixTable(SWTBotShell quickFixShell) throws QuickFixNotFoundException {
    try {
      Table table = (Table) bot.widget(widgetOfType(Table.class), quickFixShell.widget);
      return new SWTBotTable(table);
    } 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

   * @return a {@link SWTBotTable} with the specified <code>label</code>.
   */
  @SuppressWarnings("unchecked")
  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

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

   * @return a {@link SWTBotTable} with the specified <code>key/value</code>.
   */
  @SuppressWarnings("unchecked")
  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

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

   * @return a {@link SWTBotTable} with the specified <code>value</code>.
   */
  @SuppressWarnings("unchecked")
  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

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

   * @return a {@link SWTBotTable} with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  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

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

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

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

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

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

   * @return a {@link SWTBotTable} with the specified <code>none</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotTable table(int index) {
    Matcher matcher = allOf(widgetOfType(Table.class));
    return new SWTBotTable((Table) widget(matcher, index), matcher);
  }
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.