Module[] choices = getModuleChoices(askKeywordDialog.getValue());
if(choices.length == 0)
return;
ModuleListSelectionDialog dialog = new ModuleListSelectionDialog(getShell());
dialog.setMultipleSelection(false);
dialog.setElements(choices);
if(module != null) {
dialog.setInitialElementSelections(Collections.singletonList(module));
}
if(dialog.open() == Window.OK) {
setModule((Module) dialog.getFirstResult());
}
}