Author: pwang
Date: 2010-07-28 10:10:52 -0700 (Wed, 28 Jul 2010)
New Revision: 21047

Modified:
   cytoscape/trunk/src/cytoscape/CytoscapeInit.java
Log:
Clean up

Modified: cytoscape/trunk/src/cytoscape/CytoscapeInit.java
===================================================================
--- cytoscape/trunk/src/cytoscape/CytoscapeInit.java    2010-07-28 17:07:12 UTC 
(rev 21046)
+++ cytoscape/trunk/src/cytoscape/CytoscapeInit.java    2010-07-28 17:10:52 UTC 
(rev 21047)
@@ -453,30 +453,14 @@
                                } else {
                                        
Cytoscape.setCurrentSessionFileName(sessionFile);
 
-                                       // The following code has problem to 
load session file from command line on Windows
-                                       // because prefix driver letter "C:\" 
or "D:\\" was removed from the absolute path
                                        final File shortName = new 
File(sessionFile);
                                        String absolutePath = 
shortName.getAbsolutePath();
                                        if (absolutePath.startsWith("/"))
                                                absolutePath = "/" + 
absolutePath;
-                                       
-                                       System.out.println("absolutePath = 
"+absolutePath);
-                                       
+                                                                               
                                        final URL sessionURL = new URL("file:/" 
+ absolutePath.replace("%", "%25"));
                                        
-                                       System.out.println("sessionURL =" + 
sessionURL.toString());
-                                       
-                                       reader = new 
CytoscapeSessionReader(sessionURL);
-                                       
-                                       //sessionName = shortName.getName();
-                                       /*
-                                       final File _sessionFile = new 
File(sessionFile);
-                                       reader = new 
CytoscapeSessionReader(_sessionFile.toURL());
-                                       
-                                       
System.out.println("_sessionFile.toURL().toString() 
="+_sessionFile.toURL().toString());
-                                       
-                                       sessionName = _sessionFile.getName();
-                                       */
+                                       reader = new 
CytoscapeSessionReader(sessionURL);                                        
                                }
 
                                if (reader != 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