{
String title = resourceCollection.getRequiredString("wizard.result.mergedialog.title");
String text = resourceCollection.getRequiredString("wizard.result.mergedialog.text");
text = MsgFormat.format(text, writer.getFileName());
JMsgBox msgBox = new JMsgBox(WizardResultPage.this, title, text, JMsgBox.TYPE_YESNOCANCEL);
msgBox.setResource(resourceCollection);
msgBox.setResourcePrefix("wizard.result.mergedialog.");
msgBox.initDialog();
SwingUtil.show(msgBox);
int choice = msgBox.getUserChoice();
int mode = TemplateWriter.MODE_UNDEFINED;
if (choice == JMsgBox.TYPE_YES)
{
// Yes means merge