Merge branch 'features/JAL-2040_JAL-2137_phyre2' into reviews/features/JAL-2136_phyre...
[jalview.git] / src / jalview / ext / jmol / JmolParser.java
index f08e40e..d37975d 100644 (file)
@@ -186,6 +186,14 @@ public class JmolParser extends StructureFile implements JmolStatusListener
       makeResidueList();
       makeCaBondList();
 
+      if (getId() == null)
+      {
+        // always use resource name, not the hardwired file
+        // Does the value of ID get used ? Behaviour needs to be
+        // documented and tested
+        setId(getDataName());
+      }
+
       for (PDBChain chain : getChains())
       {
         SequenceI chainseq = postProcessChain(chain);