Author: pwang
Date: 2011-07-13 15:33:40 -0700 (Wed, 13 Jul 2011)
New Revision: 26173
Modified:
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/quickstart/ImportTaskUtil.java
Log:
support import table from URL
Modified:
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/quickstart/ImportTaskUtil.java
===================================================================
---
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/quickstart/ImportTaskUtil.java
2011-07-13 22:32:45 UTC (rev 26172)
+++
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/quickstart/ImportTaskUtil.java
2011-07-13 22:33:40 UTC (rev 26173)
@@ -10,9 +10,11 @@
import org.cytoscape.io.util.StreamUtil;
import org.cytoscape.model.CyNetwork;
import org.cytoscape.model.CyNetworkManager;
+import org.cytoscape.model.CyTableManager;
import org.cytoscape.property.CyProperty;
import org.cytoscape.session.CyApplicationManager;
import org.cytoscape.session.CyNetworkNaming;
+import org.cytoscape.task.internal.loaddatatable.LoadAttributesURLTask;
import org.cytoscape.task.internal.loadnetwork.LoadNetworkFileTask;
import org.cytoscape.task.internal.loadnetwork.LoadNetworkURLTask;
import
org.cytoscape.task.internal.quickstart.datasource.InteractionFilePreprocessor;
@@ -31,6 +33,7 @@
private final Set<InteractionFilePreprocessor> processors;
+ private CyTableManager tblMgr;
private CyTableReaderManager tblReaderMgr;
private final CyApplicationManager appManager;
@@ -41,7 +44,8 @@
CyNetworkManager netmgr,
final CyNetworkViewManager networkViewManager,
CyProperty<Properties> cyProps, CyNetworkNaming
cyNetworkNaming,
- StreamUtil streamUtil, CyTableReaderManager tblReaderMgr,
final CyApplicationManager appManager) {
+ StreamUtil streamUtil, CyTableManager
tblMgr,CyTableReaderManager tblReaderMgr,
+ final CyApplicationManager appManager) {
this.mgr = mgr;
this.netmgr = netmgr;
this.networkViewManager = networkViewManager;
@@ -49,6 +53,7 @@
this.cyNetworkNaming = cyNetworkNaming;
this.streamUtil = streamUtil;
this.processors = new HashSet<InteractionFilePreprocessor>();
+ this.tblMgr = tblMgr;
this.tblReaderMgr = tblReaderMgr;
this.appManager = appManager;
this.cyProps = cyProps;
@@ -88,8 +93,7 @@
}
public Task getURLImportTableTask() {
- // TODO Auto-generated method stub
- return null;
+ return new LoadAttributesURLTask(this.tblReaderMgr,
this.tblMgr);
}
public CyApplicationManager getAppManager() {
--
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.