if (errorInfo[0] == null) {
NewXMLWizard wizard = new NewXMLWizard(file, cmDocument);
wizard.init(PlatformUI.getWorkbench(), structuredSelection);
wizard.setNeedsProgressMonitor(true);
WizardDialog dialog = new WizardDialog(shell, wizard);
dialog.create();
dialog.getShell().setText(XMLWizardsMessages._UI_DIALOG_NEW_TITLE);
dialog.setBlockOnOpen(true);
dialog.open();
}
else {