X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FAppletFormatAdapter.java;h=55bb03db516eaea6fc82b00b16cd61739778ec2a;hb=ccc31f21ed36c2e43b5a1b450846284151c680bb;hp=fca726359ae9a1002f038f869f214b5221ac61f0;hpb=0555b298d22be533a0a67a3cd0ce2db883bae8bd;p=jalview.git diff --git a/src/jalview/io/AppletFormatAdapter.java b/src/jalview/io/AppletFormatAdapter.java index fca7263..55bb03d 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; @@ -282,7 +283,8 @@ public class AppletFormatAdapter // Set value to 'true' to test PDB processing with Jmol: JAL-1213 boolean isParseWithJMOL = StructureImportSettings .getDefaultPDBFileParser().equalsIgnoreCase( - StructureImportSettings.JMOL_PARSER); + StructureImportSettings.StructureParser.JMOL_PARSER + .toString()); if (isParseWithJMOL) { StructureImportSettings.addSettings(annotFromStructure, @@ -302,7 +304,7 @@ public class AppletFormatAdapter } ((StructureFile) alignFile).setDbRefType(format); } - else if (format.equals("mmCIF")) + else if (format.equalsIgnoreCase("mmCIF")) { StructureImportSettings.addSettings(annotFromStructure, localSecondaryStruct, serviceSecondaryStruct); @@ -450,17 +452,15 @@ 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")) + else if (format.equalsIgnoreCase("mmCIF")) { StructureImportSettings.addSettings(annotFromStructure, 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")) {