Author: ruschein
Date: 2011-06-24 13:28:19 -0700 (Fri, 24 Jun 2011)
New Revision: 25925
Modified:
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/datatable/CyAttributesReader.java
Log:
Non-C-family-programmer-humans do not start counting at 0.
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-06-24 20:11:27 UTC (rev 25924)
+++
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/datatable/CyAttributesReader.java
2011-06-24 20:28:19 UTC (rev 25925)
@@ -67,7 +67,7 @@
@Tunable(description = "Map data table to:")
public final ListSingleSelection<TableType> dataTypeOptions;
- private static int numImports = 0;
+ private static int nextTableNumber = 1;
public CyAttributesReader(InputStream inputStream, CyTableFactory
tableFactory,
CyApplicationManager appMgr, CyNetworkManager netMgr) {
@@ -93,7 +93,7 @@
@Override
public void run(TaskMonitor tm) throws IOException {
final CyTable table = tableFactory.createTable(
- "Table " + Integer.toString(numImports++),
CyTableEntry.NAME,
+ "Table " + Integer.toString(nextTableNumber++),
CyTableEntry.NAME,
String.class, true, true);
cyTables = new CyTable[] { table };
--
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.