JAL-2344 handle null format, simplify JalviewFileChooser constructor
[jalview.git] / src / jalview / io / HTMLOutput.java
index 381a40b..b0ca25b 100755 (executable)
@@ -1,6 +1,7 @@
 package jalview.io;
 
 import jalview.api.AlignExportSettingI;
+import jalview.bin.Cache;
 import jalview.datamodel.AlignmentExportData;
 import jalview.exceptions.NoFileSelectedException;
 import jalview.gui.AlignmentPanel;
@@ -243,9 +244,7 @@ public abstract class HTMLOutput implements Runnable
     }
 
     JalviewFileChooser jvFileChooser = new JalviewFileChooser(
-            jalview.bin.Cache.getProperty("LAST_DIRECTORY"),
-            new String[] { "html" }, new String[] { "HTML files" },
-            "HTML files");
+            Cache.getProperty("LAST_DIRECTORY"), "html", "HTML files");
     jvFileChooser.setFileView(new JalviewFileView());
 
     jvFileChooser.setDialogTitle(MessageManager