public void editExpr(GuiUserEvent event) { GuiWindow win; try { win = GuiFactory.getInstance().createWindow("gui/Expression.xml"); win.setController(this); win.show(); } catch (GDLParseException ex) { logger.error(ex.getMessage(), ex); GuiUtil.showMessage(event.window, "Error", "Error", ex.getMessage()); } }
public void showResultChanged(GuiUserEvent event) { if (((GuiChangeEvent) event).bValue) { try { showResult(event); } catch (Exception ex) { logger.error(ex.getMessage(), ex); GuiUtil.showMessage(event.window, "Error", "Error", ex.getMessage()); } } else { event.window.setValue("memResult", null); } }