Author: pwang
Date: 2011-03-24 10:26:17 -0700 (Thu, 24 Mar 2011)
New Revision: 24573
Modified:
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/PreviewTablePanel.java
Log:
Preview attribute tables from txt file (.csv, .tsv)
Modified:
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/PreviewTablePanel.java
===================================================================
---
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/PreviewTablePanel.java
2011-03-24 00:12:00 UTC (rev 24572)
+++
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/PreviewTablePanel.java
2011-03-24 17:26:17 UTC (rev 24573)
@@ -748,7 +748,7 @@
listDataTypeMap
.put(wb.getSheetName(0),
initListDataTypes(newModel));
addTableTab(newModel, wb.getSheetName(0), curRenderer);
- } else {
+ } else {// Should be text format "csv" or "tsv"
//if (isCytoscapeAttributeFile(sourceURL)) {
// fileTypeLabel.setText("Cytoscape Attribute
File");
// fileTypeLabel.setIcon(new ImageIcon(getClass()
@@ -763,9 +763,10 @@
//String[] urlParts = sourceURL.toString().split("/");
//final String tabName = urlParts[urlParts.length - 1];
- //DataTypeUtil.guessTypes(newModel, tabName,
dataTypeMap);
- //listDataTypeMap.put(tabName,
initListDataTypes(newModel));
- //addTableTab(newModel, tabName, curRenderer);
+ String tabName = "newTable";
+ DataTypeUtil.guessTypes(newModel, tabName, dataTypeMap);
+ listDataTypeMap.put(tabName,
initListDataTypes(newModel));
+ addTableTab(newModel, tabName, curRenderer);
}
//if (getFileType() == FileTypes.GENE_ASSOCIATION_FILE) {
--
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.