X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAssociatePdbFileWithSeq.java;h=c9951f54ed60cc74ca9921e5e52c04a7c9242f4c;hb=6081884ff7c5a50b2a9f6615f7a864bdc5699bf2;hp=fd89c503eac593533f0f48b2b0e970c90cd65ce8;hpb=7e3a6674abdd31bf48e7e249a74eff50fd2ce589;p=jalview.git diff --git a/src/jalview/gui/AssociatePdbFileWithSeq.java b/src/jalview/gui/AssociatePdbFileWithSeq.java index fd89c50..c9951f5 100644 --- a/src/jalview/gui/AssociatePdbFileWithSeq.java +++ b/src/jalview/gui/AssociatePdbFileWithSeq.java @@ -49,19 +49,20 @@ public class AssociatePdbFileWithSeq StructureSelectionManagerProvider ssmp) { return associatePdbWithSeq(choice, file, sequence, prompt, ssmp, - TFType.DEFAULT, null); + TFType.DEFAULT, null, true); } 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 @@ -100,6 +101,10 @@ public class AssociatePdbFileWithSeq .registerPDBEntry(entry); entry.setStructureFile(pdbfile); } + if (tft != null) + entry.setProperty("TFType", tft.name()); + if (paeFilename != null) + entry.setProperty("PAEFile", paeFilename); return entry; } }