From: David ‘Bombe’ Roden Date: Mon, 28 Dec 2009 21:59:20 +0000 (+0100) Subject: Use better method to show the possible actions. X-Git-Tag: 0.9~45 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;ds=sidebyside;h=b3c523a103015aa867e7c2017fe1a784fd49a702;p=jSite.git Use better method to show the possible actions. --- 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 {