From d256a5b05f1b6f3aec7f3c798f66665a146af70a Mon Sep 17 00:00:00 2001 From: hansonr Date: Wed, 27 Jun 2018 11:23:42 +0100 Subject: [PATCH] JAL-3032 comments only - starting work on dialogs --- src/jalview/gui/JvOptionPane.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 1.7.10.2