Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Using JFace dialogs with RAP 2.0(Using JFace dialogs with RAP 2.0)
Using JFace dialogs with RAP 2.0 [message #1013819] Sun, 24 February 2013 11:59 Go to next message
Michael Ryan is currently offline Michael RyanFriend
Messages: 1
Registered: February 2013
Junior Member
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.
Re: Using JFace dialogs with RAP 2.0 [message #1013896 is a reply to message #1013819] Sun, 24 February 2013 16:30 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1872
Registered: July 2009
Senior Member
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.

[1]
http://eclipse.org/rap/developers-guide/devguide.php?topic=application-setup.html&version=2.0
[2]
http://eclipse.org/rap/developers-guide/devguide.php?topic=application-configuration.html&version=2.0
HTH,
Ivan

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.

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:RAP 2.0 and Translations
Next Topic:RAP 2.0 ClientService: ExitConfirmation
Goto Forum:
  


Current Time: Sat Dec 20 16:03:22 GMT 2014

Powered by FUDForum. Page generated in 0.01608 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software