setWindowTitle("Edit PEAR Installation Descriptor");
setDefaultPageImageDescriptor(PearPlugin.getImageDescriptor("editInsdWiz.gif"));
setNeedsProgressMonitor(true);
currentProject = project;
} 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 {
insd = PearInstallationDescriptor.getInstallationDescriptor(currentProject);
} catch (Throwable e) {
e.printStackTrace();
insd = new InstallationDescriptor();
}
try {
ProjectCustomizer.customizeProject(currentProject, 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();
}
}