Author: scooter
Date: 2011-03-03 10:14:51 -0800 (Thu, 03 Mar 2011)
New Revision: 24302
Modified:
csplugins/trunk/ucsf/scooter/metaNodePlugin2/src/metaNodePlugin2/model/MetaNode.java
Log:
Add any new edges as OuterEdges so that they get saved
Modified:
csplugins/trunk/ucsf/scooter/metaNodePlugin2/src/metaNodePlugin2/model/MetaNode.java
===================================================================
---
csplugins/trunk/ucsf/scooter/metaNodePlugin2/src/metaNodePlugin2/model/MetaNode.java
2011-03-03 17:39:04 UTC (rev 24301)
+++
csplugins/trunk/ucsf/scooter/metaNodePlugin2/src/metaNodePlugin2/model/MetaNode.java
2011-03-03 18:14:51 UTC (rev 24302)
@@ -214,14 +214,16 @@
expandParent(view);
}
- // Get our list of edges
+ // Get our list of edges in case anyone has addded a new edge
to us
CyNode groupNode = metaGroup.getGroupNode();
List edgeList =
view.getNetwork().getAdjacentEdgesList(metaGroup.getGroupNode(), true, true,
true);
for (Object e: edgeList) {
CyEdge edge = (CyEdge)e;
- // Add any new edges
- if (!metaEdges.containsKey(edge))
+ // Add any new edges.
+ if (!metaEdges.containsKey(edge)) {
metaEdges.put(edge, edge);
+ metaGroup.addOuterEdge(edge);
+ }
}
// Hide our metaNode
--
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.