Author: jm
Date: 2012-10-29 08:13:49 -0700 (Mon, 29 Oct 2012)
New Revision: 30715
Modified:
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/datatable/CSVCyReader.java
Log:
References #1526: Default behaviour for old session files is to restore columns
as mutable, since mutability information is not saved.
Modified:
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/datatable/CSVCyReader.java
===================================================================
---
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/datatable/CSVCyReader.java
2012-10-26 22:06:35 UTC (rev 30714)
+++
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/datatable/CSVCyReader.java
2012-10-29 15:13:49 UTC (rev 30715)
@@ -249,6 +249,12 @@
static class SchemaDelegate0 extends AbstractSchemaDelegate {
@Override
protected void handleColumnOptions(CSVReader reader, TableInfo
table) throws IOException, ClassNotFoundException {
+ // Make columns except primary key mutable by default
so users
+ // won't run into issue #1526.
+ ColumnInfo[] columns = table.getColumns();
+ for (int i = 1; i < columns.length; i++) {
+ columns[i].setMutable(true);
+ }
}
}
--
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.