use of edu.stanford.bmir.protege.web.client.crud.EntityCrudKitSettingsDialogController in project webprotege by protegeproject.
the class ShowFreshEntitySettingsHandlerImpl method showDialog.
private void showDialog(final GetEntityCrudKitSettingsResult result) {
EntityCrudKitSettingsDialogController controller = dialogControllerProvider.get();
WebProtegeDialog<EntityCrudKitSettings<?>> dlg = new WebProtegeDialog<>(controller);
dlg.getController().setDialogButtonHandler(DialogButton.OK, (data, closer) -> updateFreshEntitySettings(result.getSettings(), data, closer));
dlg.setPopupPositionAndShow((w, h) -> dlg.setPopupPosition((Window.getClientWidth() - w) / 2, 100));
controller.getEditor().setValue(result.getSettings());
}
Aggregations