* @since 1.2
*/
public List getAutoCompleteProposals(String insertText) throws QuickFixNotFoundException, TimeoutException {
styledText.typeText(insertText);
bot.sleep(1000);
SWTBotShell autoCompleteShell = activateAutoCompleteShell();
final SWTBotTable autoCompleteTable = getQuickFixTable(autoCompleteShell);
List result = syncExec(new ListResult() {
public List run() {
TableItem[] items = ((Table) autoCompleteTable.widget).getItems();
ArrayList result = new ArrayList();
for (int i = 0; i < items.length; i++) {
TableItem tableItem = items[i];
result.add(tableItem.getText());
}
return result;
}
});
// makeProposalsDisappear();
autoCompleteShell.close();
return result;
}