* @param text the text on the column.
* @return the {@link TableColumn} with the specified text.
* @throws WidgetNotFoundException if the column is not found.
*/
protected static Widget findColumn(final Table table, final String text) throws WidgetNotFoundException {
TableColumn tableColumn = (TableColumn) UIThreadRunnable.syncExec(table.getDisplay(), new WidgetResult() {
public Widget run() {
TableColumn[] columns = table.getColumns();
for (int i = 0; i < columns.length; i++) {
TableColumn tableColumn = columns[i];
if (tableColumn.getText().equals(text))