Reorders a swing operation to prevent a startup race condition that was causing the first log message to render huge and with no text.

Admittedly, we don't really understand why it was happening, or why this fixes it, but it seems to fix it. :/

Review by: jat

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7099 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/shell/log/SwingTreeLogger.java b/dev/core/src/com/google/gwt/dev/shell/log/SwingTreeLogger.java
index c9fede9..5dd610a 100644
--- a/dev/core/src/com/google/gwt/dev/shell/log/SwingTreeLogger.java
+++ b/dev/core/src/com/google/gwt/dev/shell/log/SwingTreeLogger.java
@@ -355,13 +355,13 @@
         }
         int insertIndex = findInsertionPoint(parentNode, idx);
         panel.treeModel.insertNodeInto(node, parentNode, insertIndex);
+        if (logEvent.type.needsAttention()) {
+          panel.tree.makeVisible(new TreePath(node.getPath()));
+        }
         if (parentNode == panel.treeModel.getRoot()
             && parentNode.getChildCount() == 1) {
           panel.treeModel.reload();
         }
-        if (logEvent.type.needsAttention()) {
-          panel.tree.makeVisible(new TreePath(node.getPath()));
-        }
         // Propagate our priority to our ancestors
         Type priority = logEvent.getInheritedPriority();
         while (parentNode != panel.treeModel.getRoot()) {