public ShellValidationStatusPanel(String header, String footer, Shell shell) {
initComponents();
lblHeader.setText(header);
lblFooter.setText(footer);
if (shell != null) {
lblDescription.setText(loc("ShellValidationStatusPanel.lblDescription.text",
shell.type.name(), shell.bindir.getAbsolutePath()));
StringBuilder errorsText = new StringBuilder();
for (String error : shell.getValidationStatus().getErrors()) {
errorsText.append(loc("ShellValidationStatusPanel.error.text") + " " + error).append('\n');
}
for (String error : shell.getValidationStatus().getWarnings()) {
errorsText.append(loc("ShellValidationStatusPanel.warning.text") + " " + error).append('\n');
}
errorsArea.setText(errorsText.toString());
}
}