Author: ruschein
Date: 2011-06-21 13:16:02 -0700 (Tue, 21 Jun 2011)
New Revision: 25838
Modified:
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/shutdown/ConfigDirPropertyWriter.java
Log:
Added support for the new SESSION_FILE_AND_CONFIG_DIR enum constant.
Modified:
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/shutdown/ConfigDirPropertyWriter.java
===================================================================
---
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/shutdown/ConfigDirPropertyWriter.java
2011-06-21 20:13:56 UTC (rev 25837)
+++
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/shutdown/ConfigDirPropertyWriter.java
2011-06-21 20:16:02 UTC (rev 25838)
@@ -54,12 +54,14 @@
}
public void addCyProperty(final CyProperty newCyProperty, final Map
properties) {
- if (newCyProperty.getSavePolicy() ==
CyProperty.SavePolicy.CONFIG_DIR)
+ if (newCyProperty.getSavePolicy() ==
CyProperty.SavePolicy.CONFIG_DIR
+ || newCyProperty.getSavePolicy() ==
CyProperty.SavePolicy.SESSION_FILE_AND_CONFIG_DIR)
configDirProperties.put(newCyProperty, properties);
}
public void removeCyProperty(final CyProperty oldCyProperty, final Map
properties) {
- if (oldCyProperty.getSavePolicy() ==
CyProperty.SavePolicy.CONFIG_DIR)
+ if (oldCyProperty.getSavePolicy() ==
CyProperty.SavePolicy.CONFIG_DIR
+ || oldCyProperty.getSavePolicy() ==
CyProperty.SavePolicy.SESSION_FILE_AND_CONFIG_DIR)
configDirProperties.remove(oldCyProperty);
}
--
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.