}
}
private void showDetail(final Message msg) {
DefaultWindow window = new DefaultWindow(Console.CONSTANTS.common_label_messageDetail());
window.setWidth(320);
window.setHeight(240);
window.setGlassEnabled(true);
ImageResource icon = MessageCenterView.getSeverityIcon(msg.getSeverity());
AbstractImagePrototype prototype = AbstractImagePrototype.create(icon);
SafeHtmlBuilder html = new SafeHtmlBuilder();
html.appendHtmlConstant(prototype.getHTML());
html.appendHtmlConstant(" ");
html.appendEscaped(msg.getFired().toString());
html.appendHtmlConstant("<h3>"+msg.getConciseMessage()+"</h3>");
html.appendHtmlConstant("<p/>");
String detail = msg.getDetailedMessage() != null ? msg.getDetailedMessage() : Console.CONSTANTS.common_label_messageDetail();
String detailText = "<pre style='font-family:tahoma, verdana, sans-serif;'>"+detail+"</pre>";
html.appendHtmlConstant(detailText);
HTML widget = new HTML(html.toSafeHtml());
widget.getElement().setAttribute("style", "margin:5px");
ScrollPanel scroll = new ScrollPanel();
scroll.add(widget);
window.setWidget(scroll);
window.addCloseHandler(new CloseHandler<PopupPanel>() {
@Override
public void onClose(CloseEvent<PopupPanel> event) {
messagePopup.getMessageList().getSelectionModel().setSelected(msg, false);
messagePopup.hide();
}
});
window.center();
}