boolean clearConsole = false;
IToolOperationMonitor opMonitor =
buildMgr.getToolManager().startNewOperation(ProcessStartKind.CHECK_BUILD, clearConsole, false);
try {
NullOperationMonitor om = new NullOperationMonitor(cm);
<BUG>buildMgr.newProjectBuildOperation(om, opMonitor, project, true, true).execute();
</BUG>
} catch(CommonException e) {
opMonitor.writeInfoMessage("Error during auto-check:\n" + e.getSingleLineRender() + "\n");
} catch(OperationCancellation e) {

boolean clearConsole = false;
IToolOperationMonitor opMonitor =
buildMgr.getToolManager().startNewOperation(ProcessStartKind.CHECK_BUILD, clearConsole, false);
try {
NullOperationMonitor om = new NullOperationMonitor(cm);
buildMgr.requestProjectBuildOperation(opMonitor, project, true, true).execute(om);
} catch(CommonException e) {
opMonitor.writeInfoMessage("Error during auto-check:\n" + e.getSingleLineRender() + "\n");
} catch(OperationCancellation e) {
