* Sets the selection to the given text.
*
* @param text The text to select.
*/
private void _setSelection(final String text) {
final int indexOf = syncExec(new IntResult() {
public Integer run() {
String[] items = widget.getItems();
return Arrays.asList(items).indexOf(text);
}
});