What's the point of Display.findDisplay(Thread) ? [message #823888] |
Mon, 19 March 2012 02:06 |
Chris Fairhall Messages: 221 Registered: February 2011 |
Senior Member |
|
|
I have a reference to the UIThread, if I call Display.findDisplay(Thread), I get an exception saying no context is available. I can't call UICallback.runNonUIThreadWithFakeContext to run in a fake context because I don't have the display yet...
I've checked the cvs history and this would have worked before rev 1.116 of Display.java.
"Applied patch from bug 337787: [Refactoring]: remove singletons and static fields in
RWT"
My problem is I have a background thread that goes through the open sessions and does some clean up. Its got access to the ui thread as it is stored in the session. There is no public way to get a Display object from a UIThread.
|
|
|
Powered by
FUDForum. Page generated in 0.02944 seconds