protected boolean executeAnalysis(IProgressMonitor monitor) throws TmfAnalysisException {
ITmfTrace trace = getTrace();
if (trace == null) {
- /* This analysis's trace should not be null when this is called */
- throw new IllegalStateException();
+ /* This analysis was cancelled in the meantime */
+ fInitialized.countDown();
+ return false;
}
IStatus status1 = totalsModule.schedule();
IStatus status2 = eventTypesModule.schedule();
if (!(status1.isOK() && status2.isOK())) {
cancelSubAnalyses();
+ fInitialized.countDown();
return false;
}
ITmfStateSystem eventTypesSS = eventTypesModule.getStateSystem();
if (totalsSS == null || eventTypesSS == null) {
- /* Better safe than sorry... */
- throw new IllegalStateException();
+ /* This analysis was cancelled in the meantime */
+ fInitialized.countDown();
+ return false;
}
fStatistics = new TmfStateStatistics(totalsSS, eventTypesSS);