/**
* Create a progress display monitor, and actually
* execute the code generation.
*/
try {
IRunnableContext context = new ProgressMonitorDialog(Display.getDefault().getActiveShell());
PlatformUI.getWorkbench().getProgressService().runInUI(context,
getRunnable(result), null /* ISchedulingRule */);
} catch (InvocationTargetException e) {
getDefaultPlugin().logError(e.getMessage(), e);
} catch (InterruptedException e) {