Author: mmichaud
Date: 2009-03-16 08:02:07 -0700 (Mon, 16 Mar 2009)
New Revision: 16284

Modified:
   
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/loadnetwork/internal/LoadInputStreamTask.java
Log:


Modified: 
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/loadnetwork/internal/LoadInputStreamTask.java
===================================================================
--- 
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/loadnetwork/internal/LoadInputStreamTask.java
   2009-03-16 15:01:56 UTC (rev 16283)
+++ 
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/loadnetwork/internal/LoadInputStreamTask.java
   2009-03-16 15:02:07 UTC (rev 16284)
@@ -56,6 +56,8 @@
 
        @Tunable(description = "InputStream to load")
        public InputStream is;
+       public File file;
+       
 
        public LoadInputStreamTask(CyReaderManager mgr, GraphViewFactory gvf,
                        CyLayouts cyl, CyNetworkManager netmgr, Properties 
props, CyNetworkNaming namingUtil) {
@@ -68,16 +70,20 @@
        public void run(TaskMonitor taskMonitor) throws Exception {
                this.taskMonitor = taskMonitor;
                // for ( File file : files ) {
+               
+               reader = mgr.getReader(is, NETWORK);
 
-               reader = mgr.getReader(is, NETWORK);
-               
+//             uri = file.toURI();
+//             name = file.getName();
+               //reader.setInputStream(is);
                //uri = is.toURI();
-               name = is.toString();
+//             name = is.toString();
 
                if (reader == null) {
                        uri = null;
+                       System.out.println("The reader is null");
                }
-               loadNetwork(reader);
+               else loadNetwork(reader);
                // }
        }
 }


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to