Take a look at the commit. The problem was that the application code in
JFaceDemo looked like this:
-----8<-----
Realm.runWithDefault(SWTObservables.getRealm(display), new Runnable() {
public void run() {
try {
UIApplicationWindow window = createUI(uiMethod);
} catch (Throwable t) {
t.printStackTrace();
}
}
});
while( ! window.isDisposed() ) {
if( ! display.readAndDispatch() ) {
display.sleep();
}
}
-----8<-----
and this means that all is fine while we are setting up the UI but at
the moment we create UI-Elements after the intial createUI-call
(which you did in opening the dialog) the runnable is over and no
default-realm is set anymore hence the exception.
We are going to run into the same problems with Swing and QT - I need to
take a look tonight how we can solve this issue in a better way.
I think for QT the same can be done than for SWT but Swing has no event
loop I can spin itself so it might be a problem too.
Tom
Angelo zerr schrieb:
> Thank a lot Tom.
>
> When you have time could you explain me how you have fixed that?
>
> Thanks
>
> Angelo
>
>
> 2008/12/17 Tom Schindl <
toms...@gmail.com <mailto:
toms...@gmail.com>>