Package org.eclipse.swtbot.swt.finder.results

Examples of org.eclipse.swtbot.swt.finder.results.VoidResult


   *
   * @param text the text to be set.
   */
  public void setText(final String text) {
    assertEnabled();
    asyncExec(new VoidResult() {
      public void run() {
        widget.setText(text);
      }
    });
  }
View Full Code Here


  /**
   * Select the contents of the entire widget.
   */
  public void selectAll() {
    syncExec(new VoidResult() {
      public void run() {
        widget.selectAll();
      }
    });
  }
View Full Code Here

   *
   * @param text the text to set.
   */
  public void setText(final String text) {
    assertEnabled();
    asyncExec(new VoidResult() {
      public void run() {
        widget.setText(text);
      }
    });
  }
View Full Code Here

   */
  public void navigateTo(final int line, final int column) {
    log.debug(MessageFormat.format("Enquing navigation to location {0}, {1} in {2}", line, column, this)); //$NON-NLS-1$
    assertEnabled();
    setFocus();
    asyncExec(new VoidResult() {
      public void run() {
        log.debug(MessageFormat.format("Navigating to location {0}, {1} in {2}", line, column, widget)); //$NON-NLS-1$
        widget.setSelection(offset(line, column));
      }
    });
View Full Code Here

   *
   * @param text the text to be inserted at the location of the caret.
   */
  public void insertText(final String text) {
    assertEnabled();
    syncExec(new VoidResult() {
      public void run() {
        widget.insert(text);
      }
    });
  }
View Full Code Here

   * @param column the column number, 0 based.
   * @param length the length of the selection.
   */
  public void selectRange(final int line, final int column, final int length) {
    assertEnabled();
    asyncExec(new VoidResult() {
      public void run() {
        int offset = offset(line, column);
        widget.setSelection(offset, offset + length);
      }
    });
View Full Code Here

   *
   * @return the current node.
   */
  public SWTBotTableItem select() {
    assertEnabled();
    syncExec(new VoidResult() {
      public void run() {
        table.setFocus();
        table.setSelection(widget);
      }
    });
View Full Code Here

  }

  private void setChecked(final boolean checked) {
    assertEnabled();
    assertIsCheck();
    syncExec(new VoidResult() {
      public void run() {
        TableItem item = widget;
        log.debug(MessageFormat.format("Setting state to {0} on: {1}", (checked ? "checked" : "unchecked"), item.getText())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        item.setChecked(checked);
      }
View Full Code Here

   * notify listeners about checkbox state change.
   *
   * @since 1.3
   */
  private void notifyCheck() {
    syncExec(new VoidResult() {
      public void run() {
        table.notifyListeners(SWT.Selection, createCheckEvent());
      }
    });
  }
View Full Code Here

      }
    });
  }

  private void notifySelect() {
    syncExec(new VoidResult() {
      public void run() {
        table.notifyListeners(SWT.Selection, createSelectionEvent());
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.results.VoidResult

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.