} catch (BadLocationException ex) {
Logger.getLogger(LoaderWarningsPanel.class.getName()).log(Level.SEVERE, null, ex);
}
if (selection!=null) {
ModelErrors me = handler.getModelErrors(selection);
for(String e : me.getErrors()) {
warningTextArea.append(e+"\n");
}
}
currentSelection = selection;