Author: kono
Date: 2011-10-18 14:45:12 -0700 (Tue, 18 Oct 2011)
New Revision: 27223

Modified:
   
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/ArraySubGraph.java
Log:
Bug related to List column copy had been fixed.  This also fixes io-impl test 
problem.

Modified: 
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/ArraySubGraph.java
===================================================================
--- 
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/ArraySubGraph.java
      2011-10-18 21:34:12 UTC (rev 27222)
+++ 
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/ArraySubGraph.java
      2011-10-18 21:45:12 UTC (rev 27223)
@@ -404,8 +404,12 @@
                for(CyColumn column: columns) {
                        final String colName = column.getName();
                        final Class<?> colType = column.getType();
-                       if(copyRow.getTable().getColumn(colName) == null)
-                               copyRow.getTable().createColumn(colName, 
colType, column.isImmutable());
+                       if(copyRow.getTable().getColumn(colName) == null) {
+                               if(colType == List.class)
+                                       
copyRow.getTable().createListColumn(colName, column.getListElementType(), 
column.isImmutable());
+                               else
+                                       
copyRow.getTable().createColumn(colName, colType, column.isImmutable());
+                       }
                        
                        copyRow.set(column.getName(), 
originalRow.get(column.getName(), column.getType()));
                }

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