this.errorCommand = errorCommand;
this.cancelCommand = cancelCommand;
this.messagePanel.clear();
this.messagePanel.add(new Label("An error occurred while performing the following command:"));
this.messagePanel.add(new Label(errorCommand.getDescription()));
ScrollPanel detailPanel = new ScrollPanel();
detailPanel.setWidth("480px");
detailPanel.setHeight("60px");
detailPanel.add(new Label("Error details:\n\n" + error.getMessage()));
Anchor issueTrackerLink = new Anchor("Submit to the issue tracker", "http://code.google.com/p/latex-lab/issues/entry", "_blank");
this.messagePanel.add(issueTrackerLink);
this.messagePanel.add(detailPanel);
}