eclipse-windowbuilder / windowbuilder

Eclipse Windowbuilder
https://projects.eclipse.org/projects/tools.windowbuilder
Eclipse Public License 1.0
79 stars 30 forks source link

Corrupt progress monitor dialog when switching to design page on Linux #928

Open ptziegler opened 3 days ago

ptziegler commented 3 days ago

The progress monitor that is shown when switching to the Design page is run in the UI thread and therefore blocks the internal refresh of the dialog. The result is as such:

image

We need to investigate what parts of the IRunnableWithProgress need to be run in the UI thread and what can be done in a separate thread. We also needs to make sure that we only switch to the Design page, once the runnable has completed.

https://github.com/eclipse-windowbuilder/windowbuilder/blob/d650c204da1c627c89592c11a57668bdc5d5ded0/org.eclipse.wb.core.java/src/org/eclipse/wb/internal/core/editor/DesignPage.java#L454-L482

Bonus points if we can remove those dreadful IProgressMonitor methods in the DesignPageSite class.