Author: clopes
Date: 2011-12-08 15:32:19 -0800 (Thu, 08 Dec 2011)
New Revision: 27749
Modified:
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/xgmml/handler/ReadDataManager.java
Log:
Fix bug that prevented 2.x XGMML graphics from being restored.
Modified:
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/xgmml/handler/ReadDataManager.java
===================================================================
---
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/xgmml/handler/ReadDataManager.java
2011-12-08 22:30:16 UTC (rev 27748)
+++
core3/impl/trunk/io-impl/impl/src/main/java/org/cytoscape/io/internal/read/xgmml/handler/ReadDataManager.java
2011-12-08 23:32:19 UTC (rev 27749)
@@ -218,7 +218,7 @@
else if (element instanceof CyNetwork)
graphics = networkGraphics;
- Map<String, String> attributes = graphics.get(element);
+ Map<String, String> attributes =
graphics.get(element.getSUID());
if (attributes == null) {
attributes = new HashMap<String, String>();
@@ -258,6 +258,8 @@
addGraphicsAttribute((CyNode) element,
atts.getLocalName(i), atts.getValue(i));
else if (element instanceof CyEdge)
addGraphicsAttribute((CyEdge) element,
atts.getLocalName(i), atts.getValue(i));
+ else if (element instanceof CyNetwork)
+ addGraphicsAttribute((CyNetwork)
element, atts.getLocalName(i), atts.getValue(i));
}
}
}
--
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.