use of org.eclipse.xtext.ui.wizard.IProjectInfo in project xtext-eclipse by eclipse.
the class TemplateNewProjectWizard method performFinish.
@Override
public boolean performFinish() {
final IProjectInfo projectInfo = getProjectInfo();
IRunnableWithProgress op = new IRunnableWithProgress() {
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException {
try {
doFinish(projectInfo, monitor);
} catch (Exception e) {
throw new InvocationTargetException(e);
} finally {
monitor.done();
}
}
};
try {
getContainer().run(true, false, op);
} catch (InterruptedException e) {
return false;
} catch (InvocationTargetException e) {
logger.error(e.getMessage(), e);
Throwable realException = e.getTargetException();
// $NON-NLS-1$
MessageDialog.openError(getShell(), "Error", realException.getMessage());
return false;
}
return true;
}
Aggregations