Bug 354079 - Outliner runs in UI thread and blocks UI if TreeModelBuilder takes a long time to complete
Summary: Outliner runs in UI thread and blocks UI if TreeModelBuilder takes a long tim...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: IMP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Robert M. Fuhrer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-06 20:49 EDT by Anya Helene Bagge CLA
Modified: 2014-01-09 15:03 EST (History)
0 users

See Also:


Attachments
Patch making outliner run TreeModelBuilder outside UI thread (2.04 KB, patch)
2011-08-06 20:50 EDT, Anya Helene Bagge CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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