RAP-2.0 - UnsupportedOperationException in SimpleLifeCycle.sleep() Using JDialog.open(). [message #1058486] |
Tue, 14 May 2013 07:02  |
Eclipse User |
|
|
|
Hi,
In converting an existing RAP 1.4 to 2, I ran into an issue JFace Dialog.open(). When I call open() on a JFace Dialog Extended class I get a continuous stream of exceptions from the runloop. (see snippet below).
The exception is thrown in the SimpleLifeCycle.sleep() method.
@Override
public void sleep() {
String msg = "Display#sleep() not supported in current operation mode.";
throw new UnsupportedOperationException( msg );
}
Obviously this lifecycle doesn't like to sleep. Do I need a different LifeCycle? If so, how/where do I get/set that?
I have checked the 1.5 and the 2.0 Migration instructions but didn't see anything in there (unless I missed it).
I have seen people suggest using swt.Dialog instead. Not sure that is the right approach.
Other than this issue the migration seems to be fairly painless, so: "good job to the RAP team".
java.lang.UnsupportedOperationException: Display#sleep() not supported in current operation mode.
at org.eclipse.rap.rwt.internal.lifecycle.SimpleLifeCycle.sleep(SimpleLifeCycle.java:75)
at org.eclipse.swt.widgets.Display.sleep(Display.java:1200)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:843)
at org.eclipse.jface.window.Window.open(Window.java:818)
Any Help is Highly appreciated.
Kind Regards,
Erwin
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04633 seconds