I am new to RAP but can't find this issue in the forum. I have a class which is an extension of org.eclipse.jface.dialogs.Dialog. When I open the dialog I enter an endless loop with the error that Display.sleep() is not implemented.

I tried using the DialogUtil.open method but it does not take a JFace dialog as a parameter. I've tried a number of other solutions but none work.

Do I have to avoid using JFace with RAP? That would be unfortunate. Any advice will be appreciated.

Hi Michael,
starting with RAP 1.5 the default application operational mode is
JEE_COMPATIBILITY (see [1]). This mode does not support Display#sleep().
In order to use the JFace dialogs with this mode you have to implement
yourself a non-blocking solution similar to DialogUtil#open that handles
JFace dialogs. Another solution is to switch in your application
configuration the operational mode to SWT_COMPATIBILITY (see [2]),
where JFace dialogs will work out of the box.

On 2/24/2013 5:24 PM, Michael Ryan wrote:
> Hello,
>
> I am new to RAP but can't find this issue in the forum. I have a
> class which is an extension of org.eclipse.jface.dialogs.Dialog. When
> I open the dialog I enter an endless loop with the error that
> Display.sleep() is not implemented.
> I tried using the DialogUtil.open method but it does not take a JFace
> dialog as a parameter. I've tried a number of other solutions but
> none work.
> Do I have to avoid using JFace with RAP? That would be unfortunate.
> Any advice will be appreciated.
> Thanks in advance.