Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354079

Summary: Outliner runs in UI thread and blocks UI if TreeModelBuilder takes a long time to complete
Product: z_Archived Reporter: Anya Helene Bagge <eclipzilla>
Component: IMPAssignee: Robert M. Fuhrer <rfuhrer>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch making outliner run TreeModelBuilder outside UI thread none

Description Anya Helene Bagge CLA 2011-08-06 20:49:50 EDT
Build Identifier: 

If TreeModelBuilder is really slow, the UI blocks until it is complete. This is particularly a problem during start up (in my case, it needs to wait for a lot of Rascal code to load), but I believe it may also happen at other times.

I *think* the attached patch fixes the problem (by calling the TreeModelBuilder outside the asyncExec()), and starting a Job inside createControl(). (I have no idea if this can cause trouble with outline updates occuring in the wrong order; but that may be less annoying than the UI hanging.)

Reproducible: Always
Comment 1 Anya Helene Bagge CLA 2011-08-06 20:50:45 EDT
Created attachment 201039 [details]
Patch making outliner run TreeModelBuilder outside UI thread