# HG changeset patch # User Andreas Woess # Date 1328614855 -3600 # Node ID 75ff52895b31700a28681d077f194a6081a81bed # Parent 27c5466afd550394881a37c21f09c59009e1a4b0 IGV fix: Add folder for groups immediately. diff -r 27c5466afd55 -r 75ff52895b31 src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java --- a/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java Tue Feb 07 12:35:22 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java Tue Feb 07 12:40:55 2012 +0100 @@ -128,8 +128,8 @@ @Override protected Group start() throws SAXException { - Group group = new Group(this.getParentObject()); - + final Group group = new Group(this.getParentObject()); + String differenceProperty = this.readAttribute(DIFFERENCE_PROPERTY); Parser.this.differenceEncoding.put(group, (differenceProperty != null && (differenceProperty.equals("1") || differenceProperty.equals("true")))); @@ -138,12 +138,6 @@ monitor.setState(group.getName()); } - return group; - } - - @Override - protected void end(String text) throws SAXException { - final Group group = getObject(); final Folder parent = getParentObject(); if (groupCallback == null || parent instanceof Group) { SwingUtilities.invokeLater(new Runnable(){ @@ -153,6 +147,12 @@ } }); } + + return group; + } + + @Override + protected void end(String text) throws SAXException { } }; // @@ -270,7 +270,7 @@ graph.addBlockEdge(left, right); } blockConnections.clear(); - + SwingUtilities.invokeLater(new Runnable(){ @Override