From b3c523a103015aa867e7c2017fe1a784fd49a702 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 28 Dec 2009 22:59:20 +0100 Subject: [PATCH] Use better method to show the possible actions. --- src/de/todesbaum/jsite/gui/ProjectInsertPage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java index 984e6df..3b852a9 100644 --- a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java @@ -321,8 +321,8 @@ public class ProjectInsertPage extends TWizardPage implements InsertListener, Cl public void projectInsertFinished(Project project, boolean success, Throwable cause) { if (success) { String copyURILabel = I18n.getMessage("jsite.insert.okay-copy-uri"); - String selectedValue = (String) JOptionPane.showInputDialog(this, I18n.getMessage("jsite.insert.inserted"), I18n.getMessage("jsite.insert.done.title"), JOptionPane.INFORMATION_MESSAGE, null, new Object[] { I18n.getMessage("jsite.insert.okay"), copyURILabel }, copyURILabel); - if (copyURILabel.equals(selectedValue)) { + int selectedValue = JOptionPane.showOptionDialog(this, I18n.getMessage("jsite.insert.inserted"), I18n.getMessage("jsite.insert.done.title"), 0, JOptionPane.INFORMATION_MESSAGE, null, new Object[] { I18n.getMessage("jsite.insert.okay"), copyURILabel }, copyURILabel); + if (selectedValue == 1) { actionCopyURI(); } } else { -- 2.7.4