Author: ruschein
Date: 2011-02-04 11:46:53 -0800 (Fri, 04 Feb 2011)
New Revision: 24023

Added:
   
core3/swing-application-api/trunk/src/main/java/org/cytoscape/application/swing/MenuGravityTracker.java
Modified:
   
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DGraphView.java
   core3/filter-impl/trunk/pom.xml
   
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/datatable/CyAttributesReader.java
   
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/datatable/TextDataTableReader.java
   core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTable.java
   core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableFactory.java
   core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableManager.java
   
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/ArrayGraph.java
   
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableFactoryImpl.java
   
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
   
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableManagerImpl.java
   
core3/model-impl/trunk/impl/src/test/java/org/cytoscape/model/CyTableManagerTest.java
   
core3/model-impl/trunk/impl/src/test/java/org/cytoscape/model/CyTableTest.java
   
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportAttributeTableTask.java
   
core3/test-support/trunk/src/test/java/org/cytoscape/test/support/DataTableTestSupportTest.java
Log:
Added the new concept of mutable vs/ immutable CyTables.

Modified: 
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DGraphView.java
===================================================================
--- 
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DGraphView.java
    2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DGraphView.java
    2011-02-04 19:46:53 UTC (rev 24023)
@@ -412,11 +412,11 @@
                this.dropEmptySpaceTFs = dropEmptySpaceTFs;
                this.manager = manager;
 
-               final CyTable nodeCAM = dataFactory.createTable("node view", 
"SUID", Long.class, false);
+               final CyTable nodeCAM = dataFactory.createTable("node view", 
"SUID", Long.class, false, false);
                nodeCAM.createColumn("hidden", Boolean.class, false);
                tableMgr.getTableMap(CyNode.class, networkModel).put("VIEW", 
nodeCAM);
 
-               final CyTable edgeCAM = dataFactory.createTable("edge view", 
"SUID", Long.class, false);
+               final CyTable edgeCAM = dataFactory.createTable("edge view", 
"SUID", Long.class, false, false);
                edgeCAM.createColumn("hidden", Boolean.class, false);
                tableMgr.getTableMap(CyEdge.class, networkModel).put("VIEW", 
edgeCAM);
 

Modified: core3/filter-impl/trunk/pom.xml
===================================================================
--- core3/filter-impl/trunk/pom.xml     2011-02-04 00:31:17 UTC (rev 24022)
+++ core3/filter-impl/trunk/pom.xml     2011-02-04 19:46:53 UTC (rev 24023)
@@ -64,6 +64,12 @@
                <scope>compile</scope>
         </dependency>
         <dependency>
+               <groupId>org.cytoscape</groupId>
+               <artifactId>model-api</artifactId>
+               <version>3.0.0-alpha3-SNAPSHOT</version>
+               <scope>compile</scope>
+        </dependency>
+        <dependency>
                <groupId>cytoscape-temp</groupId>
                <artifactId>violinstrings</artifactId>
                <version>1.0.2</version>

Modified: 
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/datatable/CyAttributesReader.java
===================================================================
--- 
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/datatable/CyAttributesReader.java
  2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/datatable/CyAttributesReader.java
  2011-02-04 19:46:53 UTC (rev 24023)
@@ -99,9 +99,8 @@
 
        @Override
        public void run(TaskMonitor tm) throws IOException {
-
                CyTable table = tableFactory.createTable("AttrTable " + 
Integer.toString(numImports++),
-                                                          "name", 
String.class, true);
+                                                        "name", String.class, 
true, true);
                cyTables = new CyTable[] { table };
 
                try {

Modified: 
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/datatable/TextDataTableReader.java
===================================================================
--- 
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/datatable/TextDataTableReader.java
 2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/datatable/TextDataTableReader.java
 2011-02-04 19:46:53 UTC (rev 24023)
@@ -76,7 +76,7 @@
 
                checkForDuplicates( columnNames );
                final CyTable table = tableFactory.createTable(tableName, 
columnNames[0], 
-                                                              String.class, 
true);
+                                                              String.class, 
true, true);
                
                for (String col : Arrays.copyOfRange(columnNames, 1, 
columnNames.length))
                        table.createColumn(col, String.class, false);

Modified: core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTable.java
===================================================================
--- core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTable.java        
2011-02-04 00:31:17 UTC (rev 24022)
+++ core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTable.java        
2011-02-04 19:46:53 UTC (rev 24023)
@@ -49,6 +49,11 @@
         */
        boolean isPublic();
 
+       /** True if the table cannot be deleted, otherwise false.
+        *  @return True if the table cannot be deleted, otherwise false.
+        */
+       boolean isImmutable();
+
        /**
         * Returns a human readable name for the CyTable.
         * @return A human readable name for the CyTable.

Modified: 
core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableFactory.java
===================================================================
--- core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableFactory.java 
2011-02-04 00:31:17 UTC (rev 24022)
+++ core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableFactory.java 
2011-02-04 19:46:53 UTC (rev 24023)
@@ -1,14 +1,6 @@
-
 /*
- Copyright (c) 2008, The Cytoscape Consortium (www.cytoscape.org)
+ Copyright (c) 2008, 2010, The Cytoscape Consortium (www.cytoscape.org)
 
- The Cytoscape Consortium is:
- - Institute for Systems Biology
- - University of California San Diego
- - Memorial Sloan-Kettering Cancer Center
- - Institut Pasteur
- - Agilent Technologies
-
  This library is free software; you can redistribute it and/or modify it
  under the terms of the GNU Lesser General Public License as published
  by the Free Software Foundation; either version 2.1 of the License, or
@@ -33,11 +25,9 @@
  along with this library; if not, write to the Free Software Foundation,
  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 */
-
 package org.cytoscape.model;
 
 
-
 /**
  * An interface describing a factory used for creating 
  * {@link CyTable} objects.  This factory will be
@@ -45,13 +35,15 @@
  */
 public interface CyTableFactory {
        /**
-        * Creates a CyTable object with the specified name, primary key, and 
visibility.
+        * Creates a CyTable object with the specified name, primary key, 
visibility, and mutability.
         * @param title The name of the CyTable.
         * @param primaryKey The name primaryKey column for this table. 
         * @param primaryKeyType The type of the primaryKey column for this 
table. 
         * @param pub Whether or not the CyTable should be public.
+        * @param isMutable if true, the table can be deleted later on, 
otherwise it can't
         * @return A new {@link CyTable} with the specified name that is either 
public or not (see
         *         {@link CyTable#isPublic}.
         */
-       CyTable createTable(String title, String primaryKey, Class<?> 
primaryKeyType, boolean pub);
+       CyTable createTable(String title, String primaryKey, Class<?> 
primaryKeyType, boolean pub,
+                           boolean isMutable);
 }

Modified: 
core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableManager.java
===================================================================
--- core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableManager.java 
2011-02-04 00:31:17 UTC (rev 24022)
+++ core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableManager.java 
2011-02-04 19:46:53 UTC (rev 24023)
@@ -67,6 +67,12 @@
         */
        CyTable getTable(long suid);
 
+       /** Deletes a mutable table.
+        *  @param suid  the SUID identifying the CyTable to be deleted
+        *  @throws IllegalArgumentException  if the table that we requested to 
be deleted is immutable
+        */
+       void deleteTable(long suid);
+
        /** Releases all currently held references and resources. */
        public void reset();
 }

Modified: 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/ArrayGraph.java
===================================================================
--- 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/ArrayGraph.java
      2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/ArrayGraph.java
      2011-02-04 19:46:53 UTC (rev 24023)
@@ -105,9 +105,11 @@
 
                netAttrMgr = new HashMap<String, CyTable>();
                netAttrMgr.put(CyNetwork.DEFAULT_ATTRS,
-                              tableFactory.createTable(suid + " network", 
"SUID", Long.class, publicTables));
+                              tableFactory.createTable(suid + " network", 
"SUID", Long.class,
+                                                       publicTables, false));
                netAttrMgr.put(CyNetwork.HIDDEN_ATTRS,
-                              tableFactory.createTable(suid + " network", 
"SUID", Long.class, false));
+                              tableFactory.createTable(suid + " network", 
"SUID", Long.class, false,
+                                                       false));
 
                
netAttrMgr.get(CyNetwork.DEFAULT_ATTRS).createColumn(CyTableEntry.NAME, 
String.class,
                                                                     true);
@@ -116,9 +118,11 @@
 
                nodeAttrMgr = new HashMap<String, CyTable>();
                nodeAttrMgr.put(CyNetwork.DEFAULT_ATTRS,
-                               tableFactory.createTable(suid + " node", 
"SUID", Long.class, publicTables));
+                               tableFactory.createTable(suid + " node", 
"SUID", Long.class,
+                                                        publicTables, false));
                nodeAttrMgr.put(CyNetwork.HIDDEN_ATTRS,
-                               tableFactory.createTable(suid + " node", 
"SUID", Long.class, false));
+                               tableFactory.createTable(suid + " node", 
"SUID", Long.class,
+                                                        false, false));
 
                
nodeAttrMgr.get(CyNetwork.DEFAULT_ATTRS).createColumn(CyTableEntry.NAME,
                                                                      
String.class, true);
@@ -131,9 +135,11 @@
 
                edgeAttrMgr = new HashMap<String, CyTable>();
                edgeAttrMgr.put(CyNetwork.DEFAULT_ATTRS,
-                               tableFactory.createTable(suid + " edge", 
"SUID", Long.class, publicTables));
+                               tableFactory.createTable(suid + " edge", 
"SUID", Long.class,
+                                                        publicTables, false));
                edgeAttrMgr.put(CyNetwork.HIDDEN_ATTRS,
-                               tableFactory.createTable(suid + " edge", 
"SUID", Long.class, false));
+                               tableFactory.createTable(suid + " edge", 
"SUID", Long.class,
+                                                        false, false));
 
                
edgeAttrMgr.get(CyNetwork.DEFAULT_ATTRS).createColumn(CyTableEntry.NAME,
                                                                      
String.class, true);

Modified: 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableFactoryImpl.java
===================================================================
--- 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableFactoryImpl.java
      2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableFactoryImpl.java
      2011-02-04 19:46:53 UTC (rev 24023)
@@ -57,8 +57,11 @@
                this.interpreter = interpreter;
        }
 
-       public CyTable createTable(String name, String primaryKey, Class<?> 
primaryKeyType, boolean pub) {
-               CyTable table = new CyTableImpl(name, primaryKey, 
primaryKeyType, pub, help, interpreter);
+       public CyTable createTable(final String name, final String primaryKey, 
final Class<?> primaryKeyType,
+                                  final boolean pub, final boolean isMutable)
+       {
+               CyTable table = new CyTableImpl(name, primaryKey, 
primaryKeyType, pub, isMutable,
+                                               help, interpreter);
                tm.addTable(table);
                return table;
        }

Modified: 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
===================================================================
--- 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
     2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableImpl.java
     2011-02-04 19:46:53 UTC (rev 24023)
@@ -72,6 +72,8 @@
        // Visibility value is immutable.
        private final boolean pub;
 
+       private final boolean isImmutable;
+
        // Unique ID.
        private final long suid;
 
@@ -89,12 +91,13 @@
         * Creates a new CyTableImpl object.
         */
        public CyTableImpl(final String title, final String primaryKey, 
Class<?> primaryKeyType,
-                          final boolean pub, final CyEventHelper eventHelper,
+                          final boolean pub, final boolean isMutable, final 
CyEventHelper eventHelper,
                           final Interpreter interpreter)
        {
                this.title = title;
                this.primaryKey = primaryKey;
                this.pub = pub;
+               this.isImmutable = !isMutable;
                this.suid = SUIDFactory.getNextSUID();
                this.eventHelper = eventHelper;
                this.interpreter = interpreter;
@@ -166,6 +169,11 @@
                return pub;
        }
 
+       @Override
+       public boolean isImmutable() {
+               return isImmutable;
+       }
+
        /**
         * DOCUMENT ME!
         *

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
      2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/model-impl/trunk/impl/src/main/java/org/cytoscape/model/internal/CyTableManagerImpl.java
      2011-02-04 19:46:53 UTC (rev 24023)
@@ -25,9 +25,9 @@
  along with this library; if not, write to the Free Software Foundation,
  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 */
-
 package org.cytoscape.model.internal; 
 
+
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Map;
@@ -59,13 +59,15 @@
        }
        
        @Override
-       public void reset() {
+       public synchronized void reset() {
                networkTableMap.clear();
                tables.clear();
        }
 
        @Override
-       public Map<String, CyTable> getTableMap(final Class<?> graphObjectType, 
final CyNetwork network) {
+       public synchronized Map<String, CyTable> getTableMap(final Class<?> 
graphObjectType,
+                                                            final CyNetwork 
network)
+       {
                if ( network == null || graphObjectType == null )
                        return null;
 
@@ -77,8 +79,9 @@
                return networkTableMap.get(graphObjectType).get(network);
        }
 
-       
-       public void setTableMap(final Class<?> graphObjectType, final CyNetwork 
network, final Map<String,CyTable> tm) {
+       public synchronized void setTableMap(final Class<?> graphObjectType, 
final CyNetwork network,
+                                            final Map<String,CyTable> tm)
+       {
                if ( network == null )
                        throw new NullPointerException("CyNetwork is null");
                if ( graphObjectType == null )
@@ -95,14 +98,14 @@
                        tmap.put(network,tm);
        }
 
-       public void addTable(CyTable t) {
-               if ( t == null )
+       public synchronized void addTable(final CyTable t) {
+               if (t == null)
                        throw new NullPointerException("added table is null");
                tables.put( t.getSUID(), t );
        }
 
-       
-       @Override public Set<CyTable> getAllTables(boolean includePrivate) {
+       @Override
+       public synchronized Set<CyTable> getAllTables(final boolean 
includePrivate) {
                Set<CyTable> res = new HashSet<CyTable>();
                
                for ( Long key : tables.keySet() ) {    
@@ -114,7 +117,20 @@
                return res;
        }
 
-       @Override public CyTable getTable(long suid) {
+       @Override
+       public synchronized CyTable getTable(final long suid) {
                return tables.get(suid);
        }
+
+       @Override
+       public synchronized void deleteTable(final long suid) {
+               final CyTable table = tables.get(suid);
+               if (table == null)
+                       return;
+
+               if (table.isImmutable())
+                       throw new IllegalArgumentException("can't delete an 
immutable table!");
+
+               tables.remove(suid);
+       }
 }

Modified: 
core3/model-impl/trunk/impl/src/test/java/org/cytoscape/model/CyTableManagerTest.java
===================================================================
--- 
core3/model-impl/trunk/impl/src/test/java/org/cytoscape/model/CyTableManagerTest.java
       2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/model-impl/trunk/impl/src/test/java/org/cytoscape/model/CyTableManagerTest.java
       2011-02-04 19:46:53 UTC (rev 24023)
@@ -58,4 +58,14 @@
                mgr = null;
                goodNetwork = null;
        }
+
+       public void immutableTableTest() {
+               boolean exceptionWasThrown = false;
+               try {
+                       
mgr.deleteTable(goodNetwork.getDefaultNodeTable().getSUID());
+               } catch (IllegalArgumentException e) {
+                       exceptionWasThrown = true;
+               }
+               assertTrue(exceptionWasThrown);
+       }
 }

Modified: 
core3/model-impl/trunk/impl/src/test/java/org/cytoscape/model/CyTableTest.java
===================================================================
--- 
core3/model-impl/trunk/impl/src/test/java/org/cytoscape/model/CyTableTest.java  
    2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/model-impl/trunk/impl/src/test/java/org/cytoscape/model/CyTableTest.java  
    2011-02-04 19:46:53 UTC (rev 24023)
@@ -58,9 +58,11 @@
        public void setUp() {
                eventHelper = new DummyCyEventHelper();
                final Interpreter interpreter = new InterpreterImpl();
-               table = new CyTableImpl("homer", "SUID", Long.class, true, 
eventHelper, interpreter);
+               table = new CyTableImpl("homer", "SUID", Long.class, true, 
true, eventHelper,
+                                       interpreter);
                attrs = table.getRow(1L);
-               table2 = new CyTableImpl("marge", "SUID", Long.class, true, 
eventHelper, interpreter);
+               table2 = new CyTableImpl("marge", "SUID", Long.class, true, 
true, eventHelper,
+                                        interpreter);
        }
 
        @After

Added: 
core3/swing-application-api/trunk/src/main/java/org/cytoscape/application/swing/MenuGravityTracker.java
===================================================================
--- 
core3/swing-application-api/trunk/src/main/java/org/cytoscape/application/swing/MenuGravityTracker.java
                             (rev 0)
+++ 
core3/swing-application-api/trunk/src/main/java/org/cytoscape/application/swing/MenuGravityTracker.java
     2011-02-04 19:46:53 UTC (rev 24023)
@@ -0,0 +1,89 @@
+/*
+ File: MenuGravityTracker.java
+
+ Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or
+ any later version.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  The software and
+ documentation provided hereunder is on an "as is" basis, and the
+ Institute for Systems Biology and the Whitehead Institute
+ have no obligations to provide maintenance, support,
+ updates, enhancements or modifications.  In no event shall the
+ Institute for Systems Biology and the Whitehead Institute
+ be liable to any party for direct, indirect, special,
+ incidental or consequential damages, including lost profits, arising
+ out of the use of this software and its documentation, even if the
+ Institute for Systems Biology and the Whitehead Institute
+ have been advised of the possibility of such damage.  See
+ the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+package org.cytoscape.application.swing;
+
+
+import java.awt.Component;
+import java.util.HashMap;
+import java.util.Map;
+import javax.swing.JMenu;
+import javax.swing.JMenuItem;
+
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/** This class inserts menu items and separators in a menu based on their 
"gravity".
+ *  Items with higher gravity appear further down the menu.
+ */
+public final class MenuGravityTracker {
+       private final static Logger logger = 
LoggerFactory.getLogger(MenuGravityTracker.class);
+       private final JMenu menu;
+       private final Map<Component, Double> componentGravity;
+
+       public MenuGravityTracker(final JMenu menu) {
+               this.menu = menu;
+               this.componentGravity = new HashMap<Component, Double>();
+       }
+
+       public void addMenuItem(final JMenuItem newMenuItem, final double 
gravity) {
+                final int index = getInsertLocation(menu, gravity);
+                logger.info("Inserted menu item: " + newMenuItem +
+                            " with gravity: " + gravity);
+                menu.insert(newMenuItem, index);
+       }
+
+       public void addMenu(final JMenu newSubmenu, final double gravity) {
+                final int index = getInsertLocation(menu, gravity);
+                logger.info("Inserted menu: " + newSubmenu +
+                            " with gravity: " + gravity);
+                menu.insert(newSubmenu, index);
+       }
+
+       public void addMenuSeparator(final double gravity) {
+                final int index = getInsertLocation(menu, gravity);
+                menu.insertSeparator(index);
+                final Component separator = menu.getMenuComponent(index);
+                componentGravity.put(separator, gravity);
+                logger.info("Inserted menu separator with gravity: " + 
gravity);
+       }
+
+        private int getInsertLocation(final JMenu menu, final double 
newGravity) {
+                for (int i = 0; i < menu.getMenuComponentCount(); ++i) {
+                        final Component item = menu.getMenuComponent(i);
+                        if (componentGravity.containsKey(item)) {
+                                if (newGravity < componentGravity.get(item))
+                                        return i;
+                        }
+                }
+                return menu.getMenuComponentCount();
+        }
+}

Modified: 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportAttributeTableTask.java
===================================================================
--- 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportAttributeTableTask.java
     2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportAttributeTableTask.java
     2011-02-04 19:46:53 UTC (rev 24023)
@@ -107,7 +107,7 @@
        public void run(TaskMonitor tm) throws IOException {
        
                CyTable table = 
CytoscapeServices.tableFactory.createTable("AttrTable " + 
Integer.toString(numImports++), 
-                                                          "name", 
String.class, true);
+                                                                          
"name", String.class, true, true);
                cyTables = new CyTable[] { table };
 
                try {

Modified: 
core3/test-support/trunk/src/test/java/org/cytoscape/test/support/DataTableTestSupportTest.java
===================================================================
--- 
core3/test-support/trunk/src/test/java/org/cytoscape/test/support/DataTableTestSupportTest.java
     2011-02-04 00:31:17 UTC (rev 24022)
+++ 
core3/test-support/trunk/src/test/java/org/cytoscape/test/support/DataTableTestSupportTest.java
     2011-02-04 19:46:53 UTC (rev 24023)
@@ -30,8 +30,8 @@
        @Before
        public void setUp() {
                eventHelper = support.getDummyCyEventHelper(); 
-               table = factory.createTable(Integer.toString( 
rand.nextInt(10000) ), "SUID", Long.class, false);
-               table2 = factory.createTable(Integer.toString( 
rand.nextInt(10000) ), "SUID", Long.class, false);
+               table = factory.createTable(Integer.toString( 
rand.nextInt(10000) ), "SUID", Long.class, false, true);
+               table2 = factory.createTable(Integer.toString( 
rand.nextInt(10000) ), "SUID", Long.class, false, true);
                attrs = table.getRow(1l);
        }
 

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