| [news.eclipse.platform] Re: [DataBinding] AssertionFailedException: "null argument" when using DataBindingContext's default constructor |
Wrap you app's main() instructions in a call to:
The default realm is set using a call to Realm.runWithDefault(Realm, Runnable). The default realm is set while the runnable is running, and is set to the previous realm after the runnable completes.
Most of my apps have a main method that looks like this:
Display display = new Display(); Realm.runWithDefault(SWTObservables.getRealm(display), new Runnable() { public void run() { // create and open main application window } });
Ah thank you, the missing piece. We have an RCP application here. Any idea who to do it in an elegant way?
Kind regards, Sebastian