Author: mkirby
Date: 2012-02-13 15:53:53 -0800 (Mon, 13 Feb 2012)
New Revision: 28251
Modified:
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/URLHandler.java
Log:
Fixes #681: URLHandler is now populated with data sources based on the tunable
parameter fileCategory.
Modified:
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/URLHandler.java
===================================================================
---
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/URLHandler.java
2012-02-13 23:44:56 UTC (rev 28250)
+++
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/URLHandler.java
2012-02-13 23:53:53 UTC (rev 28251)
@@ -66,8 +66,11 @@
// creation of the GUI and layout
initGUI();
-
- final Collection<DataSource> dataSources =
dsManager.getDataSources(DataCategory.NETWORK);
+
+ //Get the DataSources of the appropriate DataCategory from the
tunable parameters.
+ final Collection<DataSource> dataSources =
dsManager.getDataSources(
+
DataCategory.valueOf(((String)getParams().get("fileCategory")).toUpperCase()));
+
final SortedSet<String> labelSet = new TreeSet<String>();
if (dataSources != null) {
for (DataSource ds : dataSources) {
--
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.