Author: mes
Date: 2010-10-25 14:21:15 -0700 (Mon, 25 Oct 2010)
New Revision: 22384

Modified:
   
core3/layout-cytoscape-impl/trunk/src/main/java/csplugins/layout/algorithms/graphPartition/DegreeSortedCircleLayoutTask.java
Log:
removed erroneous use of getUniqueColumns

Modified: 
core3/layout-cytoscape-impl/trunk/src/main/java/csplugins/layout/algorithms/graphPartition/DegreeSortedCircleLayoutTask.java
===================================================================
--- 
core3/layout-cytoscape-impl/trunk/src/main/java/csplugins/layout/algorithms/graphPartition/DegreeSortedCircleLayoutTask.java
        2010-10-25 21:20:11 UTC (rev 22383)
+++ 
core3/layout-cytoscape-impl/trunk/src/main/java/csplugins/layout/algorithms/graphPartition/DegreeSortedCircleLayoutTask.java
        2010-10-25 21:21:15 UTC (rev 22384)
@@ -10,6 +10,7 @@
 import org.cytoscape.model.CyNetwork;
 import org.cytoscape.model.CyNode;
 import org.cytoscape.model.CyTableManager;
+import org.cytoscape.model.CyTable;
 import org.cytoscape.view.layout.AbstractGraphPartition;
 import org.cytoscape.view.layout.LayoutNode;
 import org.cytoscape.view.layout.LayoutPartition;
@@ -45,9 +46,9 @@
         */
        public void layoutPartion(LayoutPartition partition) {
                // Create attribute
-               if(tableMgr.getTableMap(CyTableEntry.NODE, 
network).get(CyNetwork.DEFAULT_ATTRS).getUniqueColumns().contains(DEGREE_ATTR_NAME)
 == false) {
-                       tableMgr.getTableMap(CyTableEntry.NODE, 
network).get(CyNetwork.DEFAULT_ATTRS).createColumn(DEGREE_ATTR_NAME,
-                               Double.class, false);
+               CyTable table = tableMgr.getTableMap(CyTableEntry.NODE, 
network).get(CyNetwork.DEFAULT_ATTRS);
+               if(table.getColumnTypeMap().keySet().contains(DEGREE_ATTR_NAME) 
== false) {
+                       table.createColumn(DEGREE_ATTR_NAME, Double.class, 
false);
                }
 
     // just add the unlocked nodes

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