git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5969ead
)
JAL-3032 comments only - starting work on dialogs
author
hansonr
<hansonr@stolaf.edu>
Wed, 27 Jun 2018 10:23:42 +0000
(11:23 +0100)
committer
hansonr
<hansonr@stolaf.edu>
Wed, 27 Jun 2018 10:23:42 +0000
(11:23 +0100)
src/jalview/gui/JvOptionPane.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/JvOptionPane.java
b/src/jalview/gui/JvOptionPane.java
index
7b2e430
..
d0ed5f6
100644
(file)
--- 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
{
public class JvOptionPane extends JOptionPane
{
- /**
- *
- */
+ // BH 2018 no changes needed here.
+
private static final long serialVersionUID = -3019167117756785229L;
private static Object mockResponse = JvOptionPane.CANCEL_OPTION;
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
{
public static int showConfirmDialog(Component parentComponent,
Object message) throws HeadlessException
{
+ // only called by test
return isInteractiveMode()
? JOptionPane.showConfirmDialog(parentComponent, message)
: (int) getMockResponse();
return isInteractiveMode()
? JOptionPane.showConfirmDialog(parentComponent, message)
: (int) getMockResponse();