updateCount = Main.map.validatorDialog.tree.getUpdateCount();
DefaultMutableTreeNode root = Main.map.validatorDialog.tree.getRoot();
if (root == null || root.getChildCount() == 0)
return;
PaintVisitor paintVisitor = new PaintVisitor(g, mv);
DefaultMutableTreeNode severity = (DefaultMutableTreeNode) root.getLastChild();
while (severity != null) {
Enumeration<DefaultMutableTreeNode> errorMessages = severity.breadthFirstEnumeration();
while (errorMessages.hasMoreElements()) {
Object tn = errorMessages.nextElement().getUserObject();
if (tn instanceof TestError) {
paintVisitor.visit(((TestError) tn));
}
}
// Severities in inverse order
severity = severity.getPreviousSibling();
}
paintVisitor.clearPaintedObjects();
}