X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FAppletFormatAdapter.java;h=2243a5c9f6ed034f8d8d158d9b54aa19abf5cc7a;hb=82a6c8e2e25b7534168b68b2c89b9cf195f815a5;hp=fca726359ae9a1002f038f869f214b5221ac61f0;hpb=1811f4469c23e9cce0a72649e17b634f60f9fbe0;p=jalview.git diff --git a/src/jalview/io/AppletFormatAdapter.java b/src/jalview/io/AppletFormatAdapter.java index fca7263..2243a5c 100755 --- a/src/jalview/io/AppletFormatAdapter.java +++ b/src/jalview/io/AppletFormatAdapter.java @@ -26,6 +26,7 @@ import jalview.datamodel.Alignment; import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.AlignmentI; import jalview.datamodel.AlignmentView; +import jalview.datamodel.PDBEntry.Type; import jalview.structure.StructureImportSettings; import jalview.util.MessageManager; @@ -281,8 +282,8 @@ 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 - .getDefaultPDBFileParser().equalsIgnoreCase( - StructureImportSettings.JMOL_PARSER); + .getDefaultPDBFileParser() + .equals(StructureImportSettings.StructureParser.JMOL_PARSER); if (isParseWithJMOL) { StructureImportSettings.addSettings(annotFromStructure, @@ -450,8 +451,7 @@ public class AppletFormatAdapter alignFile = new MCview.PDBfile(annotFromStructure, localSecondaryStruct, serviceSecondaryStruct, source); } - ((StructureFile) alignFile) - .setDbRefType(StructureImportSettings.PDB); + ((StructureFile) alignFile).setDbRefType(Type.PDB); } else if (format.equals("mmCIF")) { @@ -459,8 +459,7 @@ public class AppletFormatAdapter localSecondaryStruct, serviceSecondaryStruct); alignFile = new jalview.ext.jmol.JmolParser(annotFromStructure, localSecondaryStruct, serviceSecondaryStruct, source); - ((StructureFile) alignFile) - .setDbRefType(StructureImportSettings.MMCIF); + ((StructureFile) alignFile).setDbRefType(Type.MMCIF); } else if (format.equals("STH")) {