// TODO obtain config value from preference settings.
// Set value to 'true' to test PDB processing with Jmol: JAL-1213
boolean isParseWithJMOL = StructureImportSettings
- .getDefaultPDBFileParser()
- .equals(StructureImportSettings.StructureParser.JMOL_PARSER);
+ .getDefaultPDBFileParser().equalsIgnoreCase(
+ StructureImportSettings.StructureParser.JMOL_PARSER
+ .toString());
if (isParseWithJMOL)
{
StructureImportSettings.addSettings(annotFromStructure,
try
{
- if (pdbFile != null && isCIFFile(pdbFile))
+ boolean isParseWithJMOL = StructureImportSettings
+ .getDefaultPDBFileParser().equalsIgnoreCase(
+ StructureImportSettings.StructureParser.JMOL_PARSER
+ .toString());
+ if (isParseWithJMOL || (pdbFile != null && isCIFFile(pdbFile)))
{
pdb = new jalview.ext.jmol.JmolParser(addTempFacAnnot, parseSecStr,
secStructServices, pdbFile, protocol);
return null;
}
String ext = StructureImportSettings.getDefaultStructureFileFormat()
- .equals(Type.MMCIF) ? ".cif" : ".xml";
+ .equalsIgnoreCase(Type.MMCIF.toString()) ? ".cif" : ".xml";
EBIFetchClient ebi = new EBIFetchClient();
file = ebi.fetchDataAsFile("pdb:" + id,
StructureImportSettings.getDefaultStructureFileFormat().toLowerCase(),