Author: kono
Date: 2011-11-17 17:16:21 -0800 (Thu, 17 Nov 2011)
New Revision: 27523

Modified:
   
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
   
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/TreeCellRenderer.java
Log:
Deadlock problem fixed.

Modified: 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
===================================================================
--- 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
 2011-11-18 00:52:47 UTC (rev 27522)
+++ 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
 2011-11-18 01:16:21 UTC (rev 27523)
@@ -327,6 +327,7 @@
                
                treeTable.updateUI();
                treeTable.doLayout();
+               treeTable.updateUI();
                treeTable.repaint();
        }
 

Modified: 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/TreeCellRenderer.java
===================================================================
--- 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/TreeCellRenderer.java
     2011-11-18 00:52:47 UTC (rev 27522)
+++ 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/TreeCellRenderer.java
     2011-11-18 01:16:21 UTC (rev 27523)
@@ -97,6 +97,12 @@
                                setToolTipText("Network Root");
                }
 
-               return networkViewManager.viewExists(node.getNetworkID());
+               boolean hasView = false;
+               
+               synchronized(this) {
+                       hasView = networkViewManager.viewExists(networkID);
+               }
+               
+               return hasView;
        }
 }
\ No newline at end of file

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to