Author: pwang
Date: 2010-12-07 13:28:57 -0800 (Tue, 07 Dec 2010)
New Revision: 23113
Modified:
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableManagerImpl.java
Log:
Fixed a Bug
Modified:
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableManagerImpl.java
===================================================================
---
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableManagerImpl.java
2010-12-07 20:26:39 UTC (rev 23112)
+++
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableManagerImpl.java
2010-12-07 21:28:57 UTC (rev 23113)
@@ -106,11 +106,12 @@
@Override public Set<CyTable> getAllTables(boolean includePrivate) {
Set<CyTable> res = new HashSet<CyTable>();
- for ( CyTable t : tables.values() ) {
+
+ for ( Long key : tables.keySet() ) {
if ( includePrivate )
- res.add(t);
- else if ( tables.get(t).isPublic() )
- res.add(t);
+ res.add(tables.get(key));
+ else if ( tables.get(key).isPublic() )
+ res.add(tables.get(key));
}
return res;
}
--
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.