receiver.handle(selected);
}
private KongaDialog createDialog() {
String title = String.format("Select %s %s", entityType.getIndefiniteArticle(), entityType.getDisplayName());
KongaDialog dialog = new WizardStyleDialog(UiUtils.getActiveWindow(), title, this);
dialog.manageLocation(ExistingEntitySelectionUi.class);
new DialogSelectionSupport(entitySelector.getSelectionSource(), dialog) {
@Override
protected boolean isEnabledFor(Selection s) {
return entitySelector.getSelectedEntity() != null;
}
};
dialog.setOkButtonAsDefault();
return dialog;
}