Author: pwang
Date: 2011-06-23 15:44:26 -0700 (Thu, 23 Jun 2011)
New Revision: 25906

Modified:
   
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
Log:
Fixed the problem related to Excel format

Modified: 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
===================================================================
--- 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
     2011-06-23 22:31:48 UTC (rev 25905)
+++ 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
     2011-06-23 22:44:26 UTC (rev 25906)
@@ -1655,28 +1655,25 @@
                                if 
(this.fileType.equalsIgnoreCase(SupportedFileType.EXCEL.getExtension()) || 
                                                                
this.fileType.equalsIgnoreCase(SupportedFileType.OOXML.getExtension())) {
 
-                                       
System.out.println("BBBBBBBBBBBB........3");
-
                                                // Extract name from the sheet 
name.
                                                //InputStream is = null;
-                                               Workbook wb = null;
-                                               try {
+                                               //Workbook wb = null;
+                                               //try {
                                                        //is = 
sources[i].openStream();
                                                        
-                                                       
System.out.println("\tis = "+ this.is);
-
-                                                       wb = 
WorkbookFactory.create(is);
-                                               }
-                                               finally {
-                                                       if (is != null) {
-                                                               is.close();
-                                                       }
-                                               }
+                                                       //wb = 
WorkbookFactory.create(is);
+                                               //}
+                                               //catch (Exception e){
+                                               //      e.printStackTrace();
+                                               //}
+                                               //finally {
+                                               //      if (is != null) {
+                                               //              is.close();
+                                               //      }
+                                               //}
                                                
-                                               
System.out.println("BBBBBBBBBBBB........3.1");
-                                               
-                                               Sheet sheet = wb.getSheetAt(0);
-                                               networkName = 
wb.getSheetName(0);
+                                               Sheet sheet = 
workbook.getSheetAt(0);
+                                               networkName = 
workbook.getSheetName(0);
 
                                                reader = new 
ExcelNetworkSheetReader(networkName, sheet, nmp,
                                                                                
     startLineNumber);

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