JAL-1823 Deleted two obsolete methods in PopupMenu.java, updated tooltip text for...
[jalview.git] / src / jalview / gui / StructureChooser.java
index fd2de8e..c83f264 100644 (file)
@@ -806,9 +806,13 @@ public class StructureChooser extends GStructureChooser implements
         pdbEntry = new PDBEntry();
             if (pdbIdStr.split(":").length > 1)
             {
-              pdbEntry.setChainCode(pdbIdStr.split(":")[1]);
+              pdbEntry.setId(pdbIdStr.split(":")[0]);
+              pdbEntry.setChainCode(pdbIdStr.split(":")[1].toUpperCase());
+            }
+            else
+            {
+              pdbEntry.setId(pdbIdStr);
             }
-        pdbEntry.setId(pdbIdStr);
         pdbEntry.setType(PDBEntry.Type.PDB);
         selectedSequence.getDatasetSequence().addPDBId(pdbEntry);
       }