}
});
}
private void showDialog(final GetEntityCrudKitSettingsResult result) {
EntityCrudKitSettingsDialogController controller = new EntityCrudKitSettingsDialogController();
WebProtegeDialog<EntityCrudKitSettings<?>> dlg = new WebProtegeDialog<EntityCrudKitSettings<?>>(controller);
dlg.setVisible(true);
controller.getEditor().setValue(result.getSettings());
dlg.getController().setDialogButtonHandler(DialogButton.OK, new WebProtegeDialogButtonHandler<EntityCrudKitSettings<?>>() {
@Override
public void handleHide(EntityCrudKitSettings<?> data, final WebProtegeDialogCloser closer) {
updateFreshEntitySettings(result.getSettings(), data, closer);