- EBIFetchClient ebi = new EBIFetchClient();
- String query = "pdb:" + pdb.getId();
- tmpPDBFile = ebi.fetchDataAsFile(query, "default", "raw").getAbsolutePath();
- if (tmpPDBFile != null)
- {
- PDBfile pdbfile = new PDBfile(tmpPDBFile, jalview.io.AppletFormatAdapter.FILE);
- pdbcanvas.setPDBFile(pdbfile);
- }
- else
- {
- throw new Exception("Empty result for WSDbFetch Query: " + query);
- }
+ EBIFetchClient ebi = new EBIFetchClient();
+ String query = "pdb:" + pdb.getId();
+ tmpPDBFile = ebi.fetchDataAsFile(query, "default", "raw").getAbsolutePath();
+ if (tmpPDBFile != null)
+ {
+ PDBfile pdbfile = new PDBfile(tmpPDBFile,
+ jalview.io.AppletFormatAdapter.FILE);
+ pdbcanvas.setPDBFile(pdbfile);
+ }
+ else
+ {
+ throw new Exception("Empty result for WSDbFetch Query: " + query);
+ }