Resolve merge conflict for StructureImportSettings
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Thu, 21 Jul 2016 16:20:56 +0000 (17:20 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Thu, 21 Jul 2016 16:20:56 +0000 (17:20 +0100)
1  2 
src/jalview/bin/Cache.java
src/jalview/ext/jmol/JmolParser.java
src/jalview/structure/StructureImportSettings.java
test/jalview/ext/jmol/JmolParserTest.java

Simple merge
Simple merge
@@@ -24,13 -31,13 +31,11 @@@ public class StructureImportSetting
  
    private static boolean showSeqFeatures = true;
  
-   public static final String JMOL_PARSER = "JMolParser";
-   public static final String JALVIEW_PARSER = "JalViewParser";
-   public static final String MMCIF = "mmCIF";
 -  private static boolean processHETATMs = false;
 -
+   public enum StructureParser
+   {
+     JMOL_PARSER, JALVIEW_PARSER
+   }
  
-   public static final String PDB = "PDB";
  
    /**
     * Determines the default file format for structure files to be downloaded
    public static void setDefaultStructureFileFormat(
            String defaultStructureFileFormat)
    {
-     StructureImportSettings.defaultStructureFileFormat = defaultStructureFileFormat;
+     StructureImportSettings.defaultStructureFileFormat = PDBEntry.Type
+             .valueOf(defaultStructureFileFormat);
    }
  
 -  public static boolean isProcessHETATMs()
 -  {
 -    return processHETATMs;
 -  }
 -
 -  public static void setProcessHETATMs(boolean processHETATMs)
 -  {
 -    StructureImportSettings.processHETATMs = processHETATMs;
 -  }
 -
    public static String getDefaultPDBFileParser()
    {
-     return defaultPDBFileParser;
+     return defaultPDBFileParser.toString();
    }
  
-   public static void setDefaultPDBFileParser(String defaultPDBFileParser)
+   public static void setDefaultPDBFileParser(
+           StructureParser defaultPDBFileParser)
    {
      StructureImportSettings.defaultPDBFileParser = defaultPDBFileParser;
    }