Author: rozagh
Date: 2012-02-13 12:11:55 -0800 (Mon, 13 Feb 2012)
New Revision: 28248
Modified:
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/actions/welcomescreen/CreateNewNetworkPanel.java
Log:
fixes #663 A null element added to the network combo box model. In the load
network method a check for hashmap containing the key of the selected combo box
item is implemented.
Modified:
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/actions/welcomescreen/CreateNewNetworkPanel.java
===================================================================
---
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/actions/welcomescreen/CreateNewNetworkPanel.java
2012-02-13 19:59:57 UTC (rev 28247)
+++
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/actions/welcomescreen/CreateNewNetworkPanel.java
2012-02-13 20:11:55 UTC (rev 28248)
@@ -127,6 +127,8 @@
}
}
+ theModel.addElement("Select a network ...");
+
for (final String label : labelSet)
theModel.addElement(label);
@@ -197,6 +199,8 @@
if (file == null)
return;
+ if (!dataSourceMap.containsKey(file))
+ return;
final URL url = new URL(dataSourceMap.get(file));
parent.dispose();
--
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.