Package net.sf.swtbot.finder.UIThreadRunnable

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


   *
   * @return the list of columns in the tree.
   */
  public List columns() {
    final int columnCount = columnCount();
    return syncExec(new ListResult() {
      public List run() {
        String columns[] = new String[columnCount];
        for (int i = 0; i < columnCount; i++)
          columns[i] = getControl().getColumn(i).getText();
        return new ArrayList(Arrays.asList(columns));
View Full Code Here


   *
   * @return the list of columns in the table.
   */
  public List columns() {
    final int columnCount = columnCount();
    return syncExec(new ListResult() {
      public List run() {
        final String columns[] = new String[columnCount];
        for (int i = 0; i < columnCount; i++)
          columns[i] = getControl().getColumn(i).getText();
        return new ArrayList(Arrays.asList(columns));
View Full Code Here

   * Gets the nodes of the tree item.
   *
   * @return the list of nodes in the treeitem.
   */
  public List getNodes() {
    return syncExec(new ListResult() {
      public List run() {
        TreeItem[] items = getTreeItem().getItems();
        ArrayList result = new ArrayList(items.length);
        for (int i = 0; i < items.length; i++)
          result.add(items[i].getText());
View Full Code Here

   * @param matcher the matcher that can match menus and menu items.
   * @param recursive if set to true, will find sub-menus as well.
   * @return all menus in the specified menubar that match the matcher.
   */
  public List findMenus(final Menu bar, final IMatcher matcher, final boolean recursive) {
    return UIThreadRunnable.syncExec(display, new ListResult() {
      public List run() {
        return findMenusInternal(bar, matcher, recursive);
      }
    });
  }
View Full Code Here

  public List getAutoCompleteProposals(String insertText) throws QuickFixNotFoundException, TimeoutException {
    styledText.typeText(insertText);
    bot.sleep(1000);
    SWTBotShell autoCompleteShell = activateAutoCompleteShell();
    final SWTBotTable autoCompleteTable = getQuickFixTable(autoCompleteShell);
    List result = syncExec(new ListResult() {
      public List run() {
        TableItem[] items = ((Table) autoCompleteTable.widget).getItems();
        ArrayList result = new ArrayList();
        for (int i = 0; i < items.length; i++) {
          TableItem tableItem = items[i];
View Full Code Here

   * Finds the editors.
   *
   * @return all the editors in the workbench.
   */
  public static List findEditors() {
    return UIThreadRunnable.syncExec(SWTUtils.display(), new ListResult() {
      public List run() {
        ArrayList result = new ArrayList();
        IWorkbenchPage[] pages = getWorkbenchPages();
        for (int i = 0; i < pages.length; i++) {
          IWorkbenchPage page = pages[i];
View Full Code Here

   * Finds all the views.
   *
   * @return all the views in the workbench.
   */
  public static List findViews() {
    return UIThreadRunnable.syncExec(SWTUtils.display(), new ListResult() {
      public List run() {
        ArrayList result = new ArrayList();
        IWorkbenchPage[] pages = getWorkbenchPages();
        for (int i = 0; i < pages.length; i++) {
          IWorkbenchPage page = pages[i];
View Full Code Here

TOP

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

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.