From: Ben Soares Date: Tue, 12 Jul 2022 10:58:35 +0000 (+0100) Subject: JAL-4034 showConfirmDialog works for both desktop and jalviewjs X-Git-Tag: Release_2_11_2_6~35^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=299d07a9554a3661d44395aa2c6bad9cecd10bf0;p=jalview.git JAL-4034 showConfirmDialog works for both desktop and jalviewjs --- diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index a5fb2dd..9ff181b 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -366,27 +366,12 @@ public class StructureChooser extends GStructureChooser // 'cancel' TODO: mock should be OK if (!runThread) { - int answer = JvOptionPane.showOptionDialog(this, - + int answer = JvOptionPane.showConfirmDialog(this, MessageManager.formatMessage( "label.fetch_references_for_3dbeacons", seqsWithoutSourceDBRef.size()), - MessageManager.getString("label.3dbeacons"), - - JvOptionPane.YES_NO_OPTION, - - JvOptionPane.PLAIN_MESSAGE, - - null, - - new Object[] - { MessageManager.getString("action.ok"), - MessageManager.getString("action.cancel") }, - - MessageManager.getString("action.ok") - - ); + JvOptionPane.YES_NO_OPTION, JvOptionPane.PLAIN_MESSAGE); runThread = (answer == JvOptionPane.OK_OPTION); } if (runThread)