Revision: 7099
Author: [email protected]
Date: Sat Nov 21 16:04:20 2009
Log: 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
http://code.google.com/p/google-web-toolkit/source/detail?r=7099

Modified:
  /trunk/dev/core/src/com/google/gwt/dev/shell/log/SwingTreeLogger.java

=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/log/SwingTreeLogger.java       
 
Sat Nov 21 16:04:11 2009
+++ /trunk/dev/core/src/com/google/gwt/dev/shell/log/SwingTreeLogger.java       
 
Sat Nov 21 16:04:20 2009
@@ -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()) {

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to