private WaitForObjectCondition<SWTBotTable> autoCompleteAppears(Matcher<?> tableMatcher) {
return new WaitForObjectCondition<SWTBotTable>(tableMatcher) {
protected List<SWTBotTable> findMatches() {
try {
activateAutoCompleteShell();
SWTBotTable autoCompleteTable = getProposalTable();
if (matcher.matches(autoCompleteTable)) {
SWTBotEclipseEditor.this.log.debug("matched table, returning");
return Arrays.asList(autoCompleteTable);
}
} catch (Throwable e) {