JAL-4407 don't transfer 'local' settings - leave as default 3d-structure annotation...
[jalview.git] / src / jalview / gui / AssociatePdbFileWithSeq.java
index 420e2cb..b2689be 100644 (file)
@@ -49,19 +49,20 @@ public class AssociatePdbFileWithSeq
           StructureSelectionManagerProvider ssmp)
   {
     return associatePdbWithSeq(choice, file, sequence, prompt, ssmp,
-            TFType.DEFAULT, null);
+            TFType.DEFAULT, null, false);
   }
 
   public PDBEntry associatePdbWithSeq(String choice, DataSourceType file,
           SequenceI sequence, boolean prompt,
           StructureSelectionManagerProvider ssmp, TFType tft,
-          String paeFilename)
+          String paeFilename, boolean doXferSettings)
   {
     PDBEntry entry = new PDBEntry();
     StructureFile pdbfile = StructureSelectionManager
             .getStructureSelectionManager(ssmp)
             .setMapping(false, new SequenceI[]
-            { sequence }, null, choice, file, tft, paeFilename);
+            { sequence }, null, choice, file, tft, paeFilename,
+                    doXferSettings);
     if (pdbfile == null)
     {
       // stacktrace already thrown so just return
@@ -96,9 +97,9 @@ public class AssociatePdbFileWithSeq
     {
       entry.setFile(choice);
       sequence.getDatasetSequence().addPDBId(entry);
+      entry.setStructureFile(pdbfile);
       StructureSelectionManager.getStructureSelectionManager(ssmp)
               .registerPDBEntry(entry);
-      entry.setStructureFile(pdbfile);
     }
     if (tft != null)
       entry.setProperty("TFType", tft.name());