JAL-2321 use StructureImportSettings singleton settings when JmolParser.parse() calle...
authorJim Procter <jprocter@issues.jalview.org>
Mon, 7 May 2018 16:38:29 +0000 (17:38 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 7 May 2018 16:38:29 +0000 (17:38 +0100)
src/jalview/ext/jmol/JmolParser.java

index 975846d..2a510a2 100644 (file)
@@ -188,7 +188,11 @@ public class JmolParser extends StructureFile implements JmolStatusListener
         }
         lastID = tmpatom.resNumIns.trim();
       }
-      xferSettings();
+      if (isParseImmediately())
+      {
+        // configure parsing settings from the static singleton
+        xferSettings();
+      }
 
       makeResidueList();
       makeCaBondList();
@@ -205,7 +209,8 @@ public class JmolParser extends StructureFile implements JmolStatusListener
           prot.add(chainseq);
         }
 
-        if (StructureImportSettings.isProcessSecondaryStructure())
+        // look at local setting for adding secondary tructure
+        if (predictSecondaryStructure)
         {
           createAnnotation(chainseq, chain, ms.at);
         }