public static void showDialog(Shell shell, IFile file, IStructuredSelection structuredSelection) {
String[] errorInfo = new String[2];
// (cs) the URI argument to createCMDocument needs to be a fully
// qualified URI
//
CMDocument cmDocument = NewXMLGenerator.createCMDocument(URIHelper.getPlatformURI(file), errorInfo);
if (errorInfo[0] == null) {
NewXMLWizard wizard = new NewXMLWizard(file, cmDocument);
wizard.init(PlatformUI.getWorkbench(), structuredSelection);
wizard.setNeedsProgressMonitor(true);
WizardDialog dialog = new WizardDialog(shell, wizard);