Package org.eclipse.swtbot.swt.finder.utils

Examples of org.eclipse.swtbot.swt.finder.utils.TableRow


    public String getSelectedConnection()
    {
        TableCollection selection = getConnectionsTree().selection();
        if ( selection != null && selection.rowCount() == 1 )
        {
            TableRow row = selection.get( 0 );
            return row.get( 0 );
        }
        return null;
    }
View Full Code Here


    public String getSelectedConnection()
    {
        TableCollection selection = getConnectionsTree().selection();
        if ( selection != null && selection.rowCount() == 1 )
        {
            TableRow row = selection.get( 0 );
            return row.get( 0 );
        }
        return null;
    }
View Full Code Here

    public String getSelectedConnection()
    {
        TableCollection selection = bot.tree().selection();
        if ( selection != null && selection.rowCount() == 1 )
        {
            TableRow row = selection.get( 0 );
            return row.get( 0 );
        }
        return null;
    }
View Full Code Here

    public String getSelectedConnection()
    {
        TableCollection selection = getConnectionsTree().selection();
        if ( selection != null && selection.rowCount() == 1 )
        {
            TableRow row = selection.get( 0 );
            return row.get( 0 );
        }
        return null;
    }
View Full Code Here

   */
  public TableRow row() {
    return syncExec(new Result<TableRow>() {
      public TableRow run() {
        int columnCount = tree.getColumnCount();
        TableRow tableRow = new TableRow();
        if (columnCount == 0)
          tableRow.add(widget.getText());
        else
          for (int j = 0; j < columnCount; j++)
            tableRow.add(widget.getText(j));
        return tableRow;
      }
    });
  }
View Full Code Here

  public void getsSingleSelection() throws Exception {
    table.select(10);
    TableCollection selection = table.selection();
    assertEquals(1, selection.rowCount());
    assertEquals(4, selection.columnCount());
    assertEquals(new TableCollection().add(new TableRow(new String[] { "Index:10", "databases", "2556", "tomorrow" })), selection);
  }
View Full Code Here

    assertEquals("Index:5", selection.get(0, 0));
    assertEquals("images", selection.get(0, 1));
    assertEquals("91571", selection.get(0, 2));
    assertEquals("yesterday", selection.get(0, 3));

    assertEquals(new TableRow(new String[] { "Index:10", "databases", "2556", "tomorrow" }), selection.get(1));
  }
View Full Code Here

  @Test
  public void getsRow() throws Exception {
    bot.checkBox("Multiple Columns").select();
    tree = bot.treeInGroup("Tree");
    SWTBotTreeItem item = tree.getTreeItem("Node 3");
    TableRow row = item.row();
    assertEquals(4, row.columnCount());
    assertEquals("Node 3", row.get(0));
    assertEquals("images", row.get(1));
    assertEquals("91571", row.get(2));
    assertEquals("yesterday", row.get(3));
  }
View Full Code Here

    tree = bot.treeInGroup("Tree");
    tree.select(2);
    TableCollection selection = tree.selection();
    assertEquals(1, selection.rowCount());
    assertEquals(4, selection.columnCount());
    assertEquals(new TableCollection().add(new TableRow(new String[] { "Node 3", "images", "91571", "yesterday" })), selection);
  }
View Full Code Here

    assertEquals("Node 2", selection.get(0, 0));
    assertEquals("databases", selection.get(0, 1));
    assertEquals("2556", selection.get(0, 2));
    assertEquals("tomorrow", selection.get(0, 3));

    assertEquals(new TableRow(new String[] { "Node 3", "images", "91571", "yesterday" }), selection.get(1));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.utils.TableRow

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.