Source:
<code>static public void generateError(final PerunError error, String header, String text) { String reportLabel = WidgetTranslation.INSTANCE.jsonClientReportErrorButton(); String okLabel = ButtonTranslation.INSTANCE.cancelButton(); final ClickHandler okClickHandler = new ClickHandler() { public void onClick(ClickEvent arg0) { if (error != null && "0".equals(error.getErrorId())) { Window.Location.reload(); } } }; final ClickHandler reportClickHandler = new ClickHandler() { public void onClick(ClickEvent arg0) { JsonErrorHandler.reportBox(error); } }; FlexTable layout = new FlexTable(); layout.setWidget(0, 0, new HTML("<p>" + new Image(LargeIcons.INSTANCE.errorIcon()))); layout.setHTML(0, 1, "<p>" + text); layout.getFlexCellFormatter().setAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_TOP); layout.getFlexCellFormatter().setAlignment(0, 1, HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_TOP); layout.getFlexCellFormatter().setStyleName(0, 0, "alert-box-image"); Confirm conf; if (error != null && "0".equals(error.getErrorId())) { conf = new Confirm(header + ((!error.getErrorId().equals("")) ? " (" + error.getErrorId() + ")" : ""), layout, okClickHandler, true); } else { conf = new Confirm(header + ((!error.getErrorId().equals("")) ? " (" + error.getErrorId() + ")" : ""), layout, okClickHandler, reportClickHandler, okLabel, reportLabel, true); conf.setCancelIcon(SmallIcons.INSTANCE.emailIcon()); <START> conf.setOkIcon(SmallIcons.INSTANCE.cancelIcon()); <END> } conf.setNonScrollable(true); conf.setAutoHide(false); conf.show(); }</code><technical_language>Hi, "stopIcon" instead of "cancelIcon" for generic "cancel" button action. Please change here. great merged afterwards. Thanks</technical_language>

Target:
static public void generateError(final PerunError error, String header, String text) { String reportLabel = WidgetTranslation.INSTANCE.jsonClientReportErrorButton(); String okLabel = ButtonTranslation.INSTANCE.cancelButton(); final ClickHandler okClickHandler = new ClickHandler() { public void onClick(ClickEvent arg0) { if (error != null && "0".equals(error.getErrorId())) { Window.Location.reload(); } } }; final ClickHandler reportClickHandler = new ClickHandler() { public void onClick(ClickEvent arg0) { JsonErrorHandler.reportBox(error); } }; FlexTable layout = new FlexTable(); layout.setWidget(0, 0, new HTML("<p>" + new Image(LargeIcons.INSTANCE.errorIcon()))); layout.setHTML(0, 1, "<p>" + text); layout.getFlexCellFormatter().setAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_TOP); layout.getFlexCellFormatter().setAlignment(0, 1, HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_TOP); layout.getFlexCellFormatter().setStyleName(0, 0, "alert-box-image"); Confirm conf; if (error != null && "0".equals(error.getErrorId())) { conf = new Confirm(header + ((!error.getErrorId().equals("")) ? " (" + error.getErrorId() + ")" : ""), layout, okClickHandler, true); } else { conf = new Confirm(header + ((!error.getErrorId().equals("")) ? " (" + error.getErrorId() + ")" : ""), layout, okClickHandler, reportClickHandler, okLabel, reportLabel, true); conf.setCancelIcon(SmallIcons.INSTANCE.emailIcon()); conf.setOkIcon(SmallIcons.INSTANCE.stopIcon()); } conf.setNonScrollable(true); conf.setAutoHide(false); conf.show(); }