Examples of SWTBotTable


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

  private WaitForObjectCondition<SWTBotTable> quickFixAppears(Matcher<?> 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<?> 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

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

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

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 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 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
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.