JAL-1824 updated caching procedure for pdb entries. Also refactored getPDBEntry metho...
[jalview.git] / src / jalview / gui / ChimeraViewFrame.java
index f644e95..1d60d6c 100644 (file)
@@ -434,7 +434,7 @@ public class ChimeraViewFrame extends StructureViewerBase
         String chain = null;
         if (seq.getDatasetSequence() != null)
         {
-          Vector<PDBEntry> pdbrefs = seq.getDatasetSequence().getPDBId();
+          Vector<PDBEntry> pdbrefs = seq.getDatasetSequence().getAllPDBEntries();
           if (pdbrefs != null && pdbrefs.size() > 0)
           {
             chain = pdbrefs.get(0).getChainCode();
@@ -950,7 +950,7 @@ public class ChimeraViewFrame extends StructureViewerBase
     if (pdbseq != null && pdbseq.getHeight() > 0)
     {
       // just use the file name from the first sequence's first PDBEntry
-      filePath = new File(pdbseq.getSequenceAt(0).getPDBId()
+      filePath = new File(pdbseq.getSequenceAt(0).getAllPDBEntries()
               .elementAt(0).getFile()).getAbsolutePath();
       processingEntry.setFile(filePath);
     }