Author: clopes
Date: 2012-08-22 09:23:05 -0700 (Wed, 22 Aug 2012)
New Revision: 30248
Modified:
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/AbstractTableFacade.java
Log:
Fixes #1388 (Facade tables are being saved in the session file): DEFAULT_ATTRS
and SHARED_DEFAULT_ATTRS tables have the DO_NOT_SAVE policy now.
Modified:
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/AbstractTableFacade.java
===================================================================
---
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/AbstractTableFacade.java
2012-08-22 16:19:04 UTC (rev 30247)
+++
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/AbstractTableFacade.java
2012-08-22 16:23:05 UTC (rev 30248)
@@ -71,7 +71,7 @@
return actual.isPublic();
}
- public void setPublic (boolean isPublic) {
+ public void setPublic(boolean isPublic) {
actual.setPublic(isPublic);
}
@@ -169,7 +169,6 @@
public int countMatchingRows(String columnName, Object value) {
return actual.countMatchingRows(columnName, value);
-
}
public int getRowCount() {
@@ -177,11 +176,12 @@
}
public SavePolicy getSavePolicy() {
- return actual.getSavePolicy();
+ return SavePolicy.DO_NOT_SAVE;
}
public void setSavePolicy(SavePolicy policy) {
- actual.setSavePolicy(policy);
+ if (policy != SavePolicy.DO_NOT_SAVE)
+ throw new IllegalArgumentException("This table cannot
be saved");
}
public void swap(CyTable otherTable) {
--
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.