Examples of SWTBotTable


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

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

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(any(SWTBotTable.class));
    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(any(SWTBotTable.class));
    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(any(SWTBotTable.class));
    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 = 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

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

  private WaitForObjectCondition<SWTBotTable> quickFixAppears(Matcher<SWTBotTable> tableMatcher) {
    return new WaitForObjectCondition<SWTBotTable>(tableMatcher) {
      protected List<SWTBotTable> findMatches() {
        try {
          activateQuickFixShell();
          SWTBotTable quickFixTable = getProposalTable();
          if (matcher.matches(quickFixTable))
            return Arrays.asList(quickFixTable);
        } catch (Throwable e) {
          makeProposalsDisappear();
        }
View Full Code Here

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

  private WaitForObjectCondition<SWTBotTable> autoCompleteAppears(Matcher<SWTBotTable> tableMatcher) {
    return new WaitForObjectCondition<SWTBotTable>(tableMatcher) {
      protected List<SWTBotTable> findMatches() {
        try {
          activateAutoCompleteShell();
          SWTBotTable autoCompleteTable = getProposalTable();
          if (matcher.matches(autoCompleteTable)) {
            SWTBotEclipseEditor.this.log.debug("matched table, returning");
            return Arrays.asList(autoCompleteTable);
          }
        } catch (Throwable e) {
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
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.