Author: kono
Date: 2010-07-09 19:57:25 -0700 (Fri, 09 Jul 2010)
New Revision: 20886

Modified:
   cytoscape/trunk/src/cytoscape/data/ImportHandler.java
Log:
This isnecessary for some FTP servers.

Modified: cytoscape/trunk/src/cytoscape/data/ImportHandler.java
===================================================================
--- cytoscape/trunk/src/cytoscape/data/ImportHandler.java       2010-07-10 
02:56:16 UTC (rev 20885)
+++ cytoscape/trunk/src/cytoscape/data/ImportHandler.java       2010-07-10 
02:57:25 UTC (rev 20886)
@@ -162,7 +162,7 @@
         */
        public GraphReader getReader(String fileName) {
                //  check if fileType is available
-               for (CyFileFilter cff : cyFileFilters) {                        
+               for (CyFileFilter cff : cyFileFilters) {
                        if (cff.accept(fileName))
                                return cff.getReader(fileName);
                }
@@ -210,9 +210,10 @@
                        contentType = contentType.substring(0, cend);
 
                for (CyFileFilter cff: cyFileFilters) {
-                       if (cff.accept(url, contentType)) {
+                       final boolean accept = cff.accept(url, contentType);
+                       if (accept) {
                                // CyLogger.getLogger().info("Found reader: 
"+cff.getDescription());
-                               GraphReader reader = cff.getReader(url, conn);
+                               final GraphReader reader = cff.getReader(url, 
conn);
 
                                // Does the reader support the url,connection 
constructor?
                                if (reader != null) {
@@ -241,7 +242,6 @@
                        }
                }
 
-               // CyLogger.getLogger().info("No reader for: "+url.toString());
                return null;
        }
 

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