X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FAppletFormatAdapter.java;fp=src%2Fjalview%2Fio%2FAppletFormatAdapter.java;h=fca726359ae9a1002f038f869f214b5221ac61f0;hb=0555b298d22be533a0a67a3cd0ce2db883bae8bd;hp=fb414f41ff1d143dcf8ee74967b70543a275bb3d;hpb=084a7f601520facb47a74c4c60fac0160b3a8047;p=jalview.git diff --git a/src/jalview/io/AppletFormatAdapter.java b/src/jalview/io/AppletFormatAdapter.java index fb414f4..fca7263 100755 --- a/src/jalview/io/AppletFormatAdapter.java +++ b/src/jalview/io/AppletFormatAdapter.java @@ -280,8 +280,9 @@ public class AppletFormatAdapter { // TODO obtain config value from preference settings. // Set value to 'true' to test PDB processing with Jmol: JAL-1213 - boolean isParseWithJMOL = !StructureImportSettings - .getCurrentDefaultFormat().equalsIgnoreCase("PDB"); + boolean isParseWithJMOL = StructureImportSettings + .getDefaultPDBFileParser().equalsIgnoreCase( + StructureImportSettings.JMOL_PARSER); if (isParseWithJMOL) { StructureImportSettings.addSettings(annotFromStructure, @@ -299,6 +300,7 @@ public class AppletFormatAdapter localSecondaryStruct, serviceSecondaryStruct, inFile, type); } + ((StructureFile) alignFile).setDbRefType(format); } else if (format.equals("mmCIF")) { @@ -306,6 +308,7 @@ public class AppletFormatAdapter localSecondaryStruct, serviceSecondaryStruct); alignFile = new jalview.ext.jmol.JmolParser(annotFromStructure, localSecondaryStruct, serviceSecondaryStruct, inFile, type); + ((StructureFile) alignFile).setDbRefType(format); } else if (format.equals("STH")) { @@ -447,6 +450,8 @@ public class AppletFormatAdapter alignFile = new MCview.PDBfile(annotFromStructure, localSecondaryStruct, serviceSecondaryStruct, source); } + ((StructureFile) alignFile) + .setDbRefType(StructureImportSettings.PDB); } else if (format.equals("mmCIF")) { @@ -454,6 +459,8 @@ public class AppletFormatAdapter localSecondaryStruct, serviceSecondaryStruct); alignFile = new jalview.ext.jmol.JmolParser(annotFromStructure, localSecondaryStruct, serviceSecondaryStruct, source); + ((StructureFile) alignFile) + .setDbRefType(StructureImportSettings.MMCIF); } else if (format.equals("STH")) {