Author: jgao
Date: 2010-01-13 20:53:03 -0800 (Wed, 13 Jan 2010)
New Revision: 18903
Modified:
csplugins/trunk/soc/jgao/IDMapping/src/csplugins/id/mapping/ui/WebserviceIDMappingClientConfigDialog.java
Log:
CyThesaurus: update IDMapperBiomart code according to new changes in bridgedb
Modified:
csplugins/trunk/soc/jgao/IDMapping/src/csplugins/id/mapping/ui/WebserviceIDMappingClientConfigDialog.java
===================================================================
---
csplugins/trunk/soc/jgao/IDMapping/src/csplugins/id/mapping/ui/WebserviceIDMappingClientConfigDialog.java
2010-01-14 02:34:31 UTC (rev 18902)
+++
csplugins/trunk/soc/jgao/IDMapping/src/csplugins/id/mapping/ui/WebserviceIDMappingClientConfigDialog.java
2010-01-14 04:53:03 UTC (rev 18903)
@@ -809,11 +809,16 @@
return false;
}
- for (String ds : datasets) {
- if (!datasetFilter.contains(ds)) {
- String display =
biomartStub.datasetDisplayName(ds);//+"("+ds+")";
- mapDatasetDisplayName.put(display, ds);
+ try {
+ for (String ds : datasets) {
+ if (!datasetFilter.contains(ds)) {
+ String display = biomartStub.datasetDisplayName(db, ds);
+ mapDatasetDisplayName.put(display, ds);
+ }
}
+ } catch (IOException e) {
+ e.printStackTrace();
+ return false;
}
return true;
@@ -973,8 +978,14 @@
if (idMapper==null) {
setDatasetsCombo();
} else if(idMapper instanceof IDMapperBiomart) {
- String dataset = ((IDMapperBiomart)idMapper).getDataset();
- String display = biomartStub.datasetDisplayName(dataset);
+ IDMapperBiomart biomart = (IDMapperBiomart)idMapper;
+ String dataset = biomart.getDataset();
+ String display = dataset;
+ try {
+ display = biomartStub.datasetDisplayName(biomart.getMart(),
dataset);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
mapDatasetDisplayName = new HashMap(1);
mapDatasetDisplayName.put(display, dataset);
chooseDatasetComboBox.setModel(new DefaultComboBoxModel(new
String[] {display}));
--
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.