- 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);
- }
- }
- catch (Exception ex)
+ EBIFetchClient ebi = new EBIFetchClient();
+ String query = "pdb:" + pdbentry.getId();
+ pdbentry.setFile(ebi.fetchDataAsFile(query, "default", "raw")
+ .getAbsolutePath());
+
+ if (pdbentry.getFile() != null)
+ pdbcanvas.init(pdbentry, seq, chains, ap, protocol);
+ } catch (Exception ex)