Author: pwang
Date: 2009-12-03 12:05:09 -0800 (Thu, 03 Dec 2009)
New Revision: 18644
Modified:
cytoscape/trunk/src/cytoscape/dialogs/SetNestedNetworkDialog.java
Log:
When setNestedNetwork for a Node, exclude current network from the network List
shown on the dialog
Modified: cytoscape/trunk/src/cytoscape/dialogs/SetNestedNetworkDialog.java
===================================================================
--- cytoscape/trunk/src/cytoscape/dialogs/SetNestedNetworkDialog.java
2009-12-03 19:19:10 UTC (rev 18643)
+++ cytoscape/trunk/src/cytoscape/dialogs/SetNestedNetworkDialog.java
2009-12-03 20:05:09 UTC (rev 18644)
@@ -67,9 +67,11 @@
this.lstNetwork.setCellRenderer(new MyCellRenderer());
this.btnOK.setEnabled(false);
- Object[] objs = Cytoscape.getNetworkSet().toArray();
+ Set<CyNetwork> networkSet = Cytoscape.getNetworkSet();
+ networkSet.remove(Cytoscape.getCurrentNetwork());
-
+ Object[] objs = networkSet.toArray();
+
CyNetwork[] networkArray = new CyNetwork[objs.length];
for (int i=0; i< networkArray.length; i++){
networkArray[i] = (CyNetwork) objs[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.