Skip to content

Commit 5f54e4f

Browse files
committed
TmfAnalysisElement: Execute analysis in separate thread
This was done in UI thread and if module.schedule blocks due to waitForCompletion (e.g. of dependent analysis) the UI thread blocks until it's finished. Change-Id: I5609f7cc06baf4e4c62c43b4fff3363415e3c1cc Signed-off-by: Bernd Hufmann <[email protected]>
1 parent 5704617 commit 5f54e4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/project/model/TmfAnalysisElement.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,10 @@ public IStatus scheduleAnalysis() {
330330
if (module == null) {
331331
return new Status(IStatus.INFO, Activator.PLUGIN_ID, String.format("null analysis for %s", getAnalysisHelper().getName())); //$NON-NLS-1$
332332
}
333-
return module.schedule();
333+
new Thread(() -> {
334+
module.schedule();
335+
}).run();
336+
return Status.OK_STATUS;
334337
}
335338

336339
/**

0 commit comments

Comments
 (0)