Author: clopes
Date: 2012-01-06 13:57:03 -0800 (Fri, 06 Jan 2012)
New Revision: 27945
Modified:
core3/impl/trunk/property-impl/src/main/java/org/cytoscape/property/internal/PropsReader.java
Log:
Commented SessionLoadedListener.handleEvent() code, so loaded session
properties don't overwrite the cytoscape3 props.
Modified:
core3/impl/trunk/property-impl/src/main/java/org/cytoscape/property/internal/PropsReader.java
===================================================================
---
core3/impl/trunk/property-impl/src/main/java/org/cytoscape/property/internal/PropsReader.java
2012-01-06 21:53:35 UTC (rev 27944)
+++
core3/impl/trunk/property-impl/src/main/java/org/cytoscape/property/internal/PropsReader.java
2012-01-06 21:57:03 UTC (rev 27945)
@@ -31,22 +31,23 @@
@Override
public void handleEvent(SessionLoadedEvent e) {
- logger.debug("Updating Properties from loaded session...");
-
- Properties newProps = null;
- CySession sess = e.getLoadedSession();
-
- if (sess != null)
- newProps = sess.getCytoscapeProperties();
- else
- logger.warn("Loaded session is null.");
-
- if (newProps == null) {
- logger.warn("Could not get new properties from loaded
session - using empty properties.");
- newProps = new Properties();
- }
-
- props.clear();
- props.putAll(newProps);
+ // TODO: should not worry about session related props, since
the save policy is CONFIG_DIR (?)
+// logger.debug("Updating Properties from loaded session...");
+//
+// Properties newProps = null;
+// CySession sess = e.getLoadedSession();
+//
+// if (sess != null)
+// newProps = sess.getProperties();
+// else
+// logger.warn("Loaded session is null.");
+//
+// if (newProps == null) {
+// logger.warn("Could not get new properties from loaded
session - using empty properties.");
+// newProps = new Properties();
+// }
+//
+// props.clear();
+// props.putAll(newProps);
}
}
--
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.