Author: mes
Date: 2011-08-30 11:49:21 -0700 (Tue, 30 Aug 2011)
New Revision: 26652

Modified:
   
core3/api/trunk/swing-application-api/src/main/java/org/cytoscape/application/swing/AbstractCyAction.java
Log:
fixed bug in how matching rows were found

Modified: 
core3/api/trunk/swing-application-api/src/main/java/org/cytoscape/application/swing/AbstractCyAction.java
===================================================================
--- 
core3/api/trunk/swing-application-api/src/main/java/org/cytoscape/application/swing/AbstractCyAction.java
   2011-08-30 18:48:32 UTC (rev 26651)
+++ 
core3/api/trunk/swing-application-api/src/main/java/org/cytoscape/application/swing/AbstractCyAction.java
   2011-08-30 18:49:21 UTC (rev 26652)
@@ -432,11 +432,12 @@
                }
 
                // If any of nodes are selected, enable this.
-               if 
(network.getDefaultNodeTable().getMatchingRows(CyNetwork.SELECTED, 
Boolean.class).isEmpty()
-                   && 
network.getDefaultEdgeTable().getMatchingRows(CyNetwork.SELECTED, 
Boolean.class).isEmpty())
+               if 
(network.getDefaultNodeTable().getMatchingRows(CyNetwork.SELECTED, 
Boolean.TRUE).isEmpty() &&
+                   
network.getDefaultEdgeTable().getMatchingRows(CyNetwork.SELECTED, 
Boolean.TRUE).isEmpty()) 
                        setEnabled(false);
-               else
+               else 
                        setEnabled(true);
+               
        }
 
        /**
@@ -453,7 +454,7 @@
                        return;
                }
 
-               
setEnabled(!network.getDefaultNodeTable().getMatchingRows(CyNetwork.SELECTED, 
Boolean.class).isEmpty());
+               
setEnabled(!network.getDefaultNodeTable().getMatchingRows(CyNetwork.SELECTED, 
Boolean.TRUE).isEmpty());
        }
 
        /**
@@ -471,7 +472,7 @@
                        return;
                }
 
-               
setEnabled(!network.getDefaultEdgeTable().getMatchingRows(CyNetwork.SELECTED, 
Boolean.class).isEmpty());
+               
setEnabled(!network.getDefaultEdgeTable().getMatchingRows(CyNetwork.SELECTED, 
Boolean.TRUE).isEmpty());
        }
 
        private void enableForTable() {

-- 
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