From: hansonr Date: Wed, 27 Jun 2018 10:23:42 +0000 (+0100) Subject: JAL-3032 comments only - starting work on dialogs X-Git-Tag: Develop-2_11_2_0-d20201215~24^2~68^2~632 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d256a5b05f1b6f3aec7f3c798f66665a146af70a;p=jalview.git JAL-3032 comments only - starting work on dialogs --- diff --git a/src/jalview/gui/JvOptionPane.java b/src/jalview/gui/JvOptionPane.java index 7b2e430..d0ed5f6 100644 --- a/src/jalview/gui/JvOptionPane.java +++ b/src/jalview/gui/JvOptionPane.java @@ -29,9 +29,8 @@ import javax.swing.JOptionPane; public class JvOptionPane extends JOptionPane { - /** - * - */ + // BH 2018 no changes needed here. + private static final long serialVersionUID = -3019167117756785229L; private static Object mockResponse = JvOptionPane.CANCEL_OPTION; @@ -41,6 +40,7 @@ public class JvOptionPane extends JOptionPane public static int showConfirmDialog(Component parentComponent, Object message) throws HeadlessException { + // only called by test return isInteractiveMode() ? JOptionPane.showConfirmDialog(parentComponent, message) : (int) getMockResponse();