Package net.sf.swtbot.finder.UIThreadRunnable

Examples of net.sf.swtbot.finder.UIThreadRunnable.StringResult


   * @return the cell at the location specified by the row and column
   */
  public String cell(final int row, final int column) {
    assertIsLegalCell(row, column);

    return syncExec(new StringResult() {
      public String run() {
        TableItem item = getControl().getItem(row);
        return item.getText(column);
      }
    });
View Full Code Here


    Assert.isLegal(row < rowCount, "The row number (" + row + ") is more than the number of rows(" + rowCount + ") in the tree.");
    Assert.isLegal(column < columnCount, "The column number (" + column + ") is more than the number of column(" + columnCount
        + ") in the tree.");

    return syncExec(new StringResult() {
      public String run() {
        TreeItem item = getControl().getItem(row);
        return item.getText(column);
      }
    });
View Full Code Here

   * Attempts to select the current item.
   *
   * @return the current selection in the combo box.
   */
  public String selection() {
    return syncExec(new StringResult() {
      public String run() {
        return getCombo().getItem(getCombo().getSelectionIndex());
      }
    });
  }
View Full Code Here

   * Gets the current selection in the combo.
   *
   * @return the current selection in the combo box or null if no item is selected.
   */
  public String selection() {
    return syncExec(new StringResult() {
      public String run() {
        int selectionIndex = getCCombo().getSelectionIndex();
        if (selectionIndex == -1)
          return null;
        return getCCombo().getItem(selectionIndex);
View Full Code Here

   *
   * @return the tooltip on the widget.
   * @since 1.0
   */
  public String getToolTipText() {
    return syncExec(new StringResult() {
      public String run() {
        return SWTUtils.getToolTipText(widget);
      }
    });
  }
View Full Code Here

   *
   * @return the tooltip on the widget.
   * @since 1.0
   */
  public String getToolTipText() {
    return syncExec(new StringResult() {
      public String run() {
        return SWTUtils.getToolTipText(widget);
      }
    });
  }
View Full Code Here

   * @return the cell at the location specified by the row and column
   */
  public String cell(final int row, final int column) {
    assertIsLegalCell(row, column);

    return syncExec(new StringResult() {
      public String run() {
        TableItem item = getControl().getItem(row);
        return item.getText(column);
      }
    });
View Full Code Here

   *
   * @param index the zero based index.
   * @return the item at the specified index.
   */
  public String itemAt(final int index) {
    return syncExec(new StringResult() {
      public String run() {
        return getList().getItem(index);
      }
    });
  }
View Full Code Here

   * Gets the current selection text.
   *
   * @return the selection in the styled text
   */
  public String getSelection() {
    return syncExec(new StringResult() {
      public String run() {
        return getControl().getSelectionText();
      }
    });
  }
View Full Code Here

   *
   * @param line the line number.
   * @return the text on the given line number, without the line delimiters.
   */
  public String getTextOnLine(final int line) {
    return syncExec(new StringResult() {
      public String run() {
        return getControl().getContent().getLine(line);
      }
    });
  }
View Full Code Here

TOP

Related Classes of net.sf.swtbot.finder.UIThreadRunnable.StringResult

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.