JAL-2344 use ".cif" for saved mmCIF file (and refactor fetch as file)
[jalview.git] / src / jalview / datamodel / PDBEntry.java
index 97fb08d..8debacf 100755 (executable)
@@ -46,11 +46,21 @@ public class PDBEntry
 
   public enum Type
   {
-    // TODO is FILE needed; if not is this needed or can we
+    // TODO is FILE needed; if not is this enum needed, or can we
     // use FileFormatI for PDB, MMCIF?
-    PDB("pdb", "xml"), MMCIF("mmcif", "mmcif"), FILE("?", "?");
+    PDB("pdb", "pdb"), MMCIF("mmcif", "cif"), FILE("?", "?");
+
+    /*
+     * file extension for cached structure file; must be one that
+     * is recognised by Chimera 'open' command
+     * @see https://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/filetypes.html
+     */
     String ext;
 
+    /*
+     * format specifier used in dbfetch request
+     * @see http://www.ebi.ac.uk/Tools/dbfetch/dbfetch/dbfetch.databases#pdb
+     */
     String format;
 
     private Type(String fmt, String ex)