JAL-2344 now flagging formats as 'identifiable' instead of 'dynamic'
[jalview.git] / src / jalview / gui / Desktop.java
index c09adea..4ce42dc 100644 (file)
@@ -1033,15 +1033,14 @@ public class Desktop extends jalview.jbgui.GDesktop implements
        * Skip this step for dynamically added file formats, because
        * IdentifyFile does not know how to recognise them.
        */
-      boolean dynamicFormat = FileFormats.getInstance().isDynamic(format);
-      if (!dynamicFormat && !FileFormat.Jalview.equals(format))
+      if (FileFormats.getInstance().isIdentifiable(format))
       {
         try
         {
           format = new IdentifyFile().identify(choice, DataSourceType.FILE);
         } catch (FileFormatException e)
         {
-          // format is null
+          // format = null; //??
         }
       }