JAL-4461 fix up formatting and remove old comment
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 12 Sep 2024 13:57:29 +0000 (14:57 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Thu, 12 Sep 2024 13:57:29 +0000 (14:57 +0100)
src/jalview/gui/AlignFrame.java

index 7f32ad3..ada1cf9 100644 (file)
@@ -1201,14 +1201,14 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
       return;
     }
     currentFileFormat = chooser.getSelectedFormat();
-    // todo is this (2005) test now obsolete - value is never null?
     while (currentFileFormat == null)
     {
+      // if the autodetect format from extension failed..
       JvOptionPane.showInternalMessageDialog(Desktop.desktop,
-              MessageManager
-                      .getString("label.select_file_format_before_saving"),
-              MessageManager.getString("label.file_format_not_specified"),
-              JvOptionPane.WARNING_MESSAGE);
+              MessageManager.getString(
+                      "label.select_file_format_before_saving"),
+                  MessageManager.getString("label.file_format_not_specified"),
+                JvOptionPane.WARNING_MESSAGE);
       value = chooser.showSaveDialog(this);
       if (value != JalviewFileChooser.APPROVE_OPTION)
       {