if (monitor.isCanceled()) {
return Status.CANCEL_STATUS;
}
// create code generator instance
ICodeGenerator codegen = new OawCodeGeneratorWithRuntime();
IStatus status = codegen.generateCode(model, o.getProject(), new SubProgressMonitor(monitor, 50), runtimeProperties);
if (monitor.isCanceled())
return Status.CANCEL_STATUS;
// finished