@Override public boolean test() { items = table.getItems(); for (TableItem item : items) { if (!item.getSWTWidget().isDisposed() && matcher.matches(item.getText())) { item.select(); return true; } } return false; }
public ServiceTestClassWizard selectMixin(String... mixin) { Table table = new DefaultTable(); List<TableItem> items = table.getItems(); for (TableItem item : items) { String text = item.getText(); for (int i = 0; i < mixin.length; i++) { if (mixin[i] != null && mixin[i].equals(text)) { item.setChecked(true); } } } return this; }