From: Jim Procter Date: Thu, 12 Sep 2024 13:57:29 +0000 (+0100) Subject: JAL-4461 fix up formatting and remove old comment X-Git-Tag: Release_2_11_4_0~6^2~1^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=67cc778b79c2cca83b6c746bbc52a9d9166743fb;p=jalview.git JAL-4461 fix up formatting and remove old comment --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 7f32ad3..ada1cf9 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -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) {