field.setSelectAllWhenFocused(true);
return field;
}
private void installAutoCompletion() {
CompletionContext ctx = PackageNameCompletionContextBuilder.buildForField();
AutoCompleterFactory factory = AutoCompleterFactory.dropDownFactory();
factory.setGrabFocus(false);
AutoCompleter completer = factory.createAutoCompleter(ctx);
completer.install(packageField);
}