| [news.eclipse.platform.swt] Re: how to update the shell after invoke setSize()?? |
You are sleeping in the UI thread, you are not running in another thread. asyncexec does not start a new thread, it runs your runnable in the UI thread. Because you are sleeping in the UI thread, you are locking up the UI for 2 seconds so that nothing happens during that time.