protected void reportProgress ( String taskDecription ) { if ( this . progress != null ) { if ( this . progress . isCanceled ( ) ) { // Only AbortCompilation can stop the compiler cleanly. // We check cancellation again following the call to compile. throw new AbortCompilation ( true , null ) ; } this . progress . setTaskName ( taskDecription ) ; } }
Checks whether the compilation has been canceled and reports the given progress to the compiler progress .