X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fgui%2FProjectInsertPage.java;h=04241c20d932dd2940b45d6e4e22e0358369e76c;hb=b2a95b33e43c9f7d34474f6b842e3b0a891c68cf;hp=32fd2f18018ece803e95a61991b243cce00535cf;hpb=3aa1848bb1dcbf0df8bd2ccc88eacaafa5372253;p=jSite.git diff --git a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java index 32fd2f1..04241c2 100644 --- a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java @@ -316,7 +316,11 @@ public class ProjectInsertPage extends TWizardPage implements InsertListener, Cl */ public void projectInsertFinished(Project project, boolean success, Throwable cause) { if (success) { - JOptionPane.showMessageDialog(this, I18n.getMessage("jsite.insert.inserted"), null, JOptionPane.INFORMATION_MESSAGE); + 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)) { + actionCopyURI(); + } } else { if (cause == null) { JOptionPane.showMessageDialog(this, I18n.getMessage("jsite.insert.insert-failed"), null, JOptionPane.ERROR_MESSAGE);