Package org.eclipse.swtbot.swt.finder.widgets

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


  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

  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

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

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

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

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

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

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

    @Test
    public void testLogTableFirstColumnIsNotEditable() {

        TableViewer logTableViewer = ColumnPreferenceView.getTableViewer();

        SWTBotTable logTable = getLogTable();

        boolean isCellEditorActive = false;

        for (int i = 0; i < logTable.rowCount(); i++) {
            logTable.click(i, 0);
            // try to edit cell by F2 key
            logTable.pressShortcut(getKey(SWT.F2));
            waitForCellEditorState(logTableViewer, false);
            isCellEditorActive = logTableViewer.isCellEditorActive();
            assertFalse(isCellEditorActive);

            // try to edit first cell by mouse doubleclick
            logTable.doubleClick(i, 0);
            waitForCellEditorState(logTableViewer, false);
            isCellEditorActive = logTableViewer.isCellEditorActive();
            assertFalse(isCellEditorActive);
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.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.