Skip to main content


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: 2427
Registered: July 2009
Location: Sofia, Bulgaria
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:Images in tables sometimes cropped to 16px
Next Topic:RAP 2.0: Executing ActionFactory.QUIT leads to client exception
Goto Forum:
  


Current Time: Sat Sep 21 02:09:28 GMT 2024

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

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

Back to the top