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