Search in sources :

Example 1 with TableRow

use of org.eclipse.swtbot.swt.finder.utils.TableRow in project eclipse-integration-commons by spring-projects.

the class SWTBotUtils method getSelection.

public static String getSelection(SWTBotTree tree) {
    TableCollection selections = tree.selection();
    String selection = "";
    for (int r = 0; r < selections.rowCount(); r++) {
        if (r > 0)
            selection += "\n";
        TableRow row = selections.get(r);
        for (int c = 0; c < row.columnCount(); c++) {
            if (c > 0)
                selection += " >> ";
            selection += row.get(c);
        }
    }
    return selection;
}
Also used : TableRow(org.eclipse.swtbot.swt.finder.utils.TableRow) TableCollection(org.eclipse.swtbot.swt.finder.utils.TableCollection)

Aggregations

TableCollection (org.eclipse.swtbot.swt.finder.utils.TableCollection)1 TableRow (org.eclipse.swtbot.swt.finder.utils.TableRow)1