JAL-2344 now flagging formats as 'identifiable' instead of 'dynamic'
[jalview.git] / src / jalview / io / FileFormat.java
index 5a95a9e..a11147c 100644 (file)
@@ -332,6 +332,12 @@ public enum FileFormat implements FileFormatI
     {
       return false;
     }
+
+    @Override
+    public boolean isIdentifiable()
+    {
+      return false;
+    }
   };
 
   private boolean writable;
@@ -405,4 +411,14 @@ public enum FileFormat implements FileFormatI
   {
     return false;
   }
+
+  /**
+   * By default, answers true, indicating the format is one that can be
+   * identified by IdentifyFile. Formats that cannot be identified should
+   * override this method to return false.
+   */
+  public boolean isIdentifiable()
+  {
+    return true;
+  }
 }