scala-ide/scala-ide — pull request #782 by skyluc (2014-08-29 16:39:10+00:00)
Title: Fixed NPE on first start on Luna

In Luna preference initializers are called asynchronously outside of the UI thread.
The code used to get the current window was not working when not run on the UI thread.
The code from SWTUtils has a nice fallback.

Fixes #1002242