setWindowTitle("PEAR Generation Wizard");
setDefaultPageImageDescriptor(PearPlugin.getImageDescriptor("generatePearWiz.gif"));
setNeedsProgressMonitor(true);
currentContainer = container;
} catch (Throwable e) {
PearException subEx = new PearException(
"Operation failed because the wizard could not be initialized.\nPlease report this error.",
e);
subEx.openErrorDialog(getShell());
this.dispose();
}
try {
AbstractUIPlugin plugin = PearPlugin.getDefault();
IDialogSettings workbenchSettings = plugin.getDialogSettings();
IDialogSettings section = workbenchSettings.getSection("PearFileExportWizard");//$NON-NLS-1$
if (section == null)
section = workbenchSettings.addNewSection("PearFileExportWizard");//$NON-NLS-1$
setDialogSettings(section);
} catch (Throwable e) {
e.printStackTrace();
}
try {
insd = PearInstallationDescriptor.getInstallationDescriptor(currentContainer);
} catch (Throwable e) {
e.printStackTrace();
insd = new InstallationDescriptor();
}
try {
ProjectCustomizer.customizeProject(currentContainer, insd);
} catch (Throwable e) {
PearException subEx = new PearException(
"Operation failed because the wizard could not customize your project as a UIMA project.",
e);
subEx.openErrorDialog(getShell());
this.dispose();
}
}