Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » [Databinding] Osgi RWT and JFace DataBinding
[Databinding] Osgi RWT and JFace DataBinding [message #908892] Thu, 06 September 2012 07:27 Go to next message
Charlie Mordant is currently offline Charlie MordantFriend
Messages: 88
Registered: July 2010
Member

Hi,

I'm trying to make JFace databinding working with RWT and Virgo.

The problem is that when I go to a page that use Databinding, it complains about that the validation realm cannot be null.

The solution I found navigating to forums to launch the UI like this:
final Display display = Display.getDefault();
		Realm.runWithDefault(SWTObservables.getRealm(display), new Runnable() {
            public void run() {... 
}

Doesn't because the thread is already finished when I arrive to my page.

If I put the above loop, it complains that sleep is not authorized in a simpleexecutioncontext.
while(!shell.isDisposed()) {
if (!display.readAndDispatch())
	 	display.sleep();
	}



Have you got an idea of how I can make databinding work?

Best regards,
Re: [Databinding] Osgi RWT and JFace DataBinding [message #908902 is a reply to message #908892] Thu, 06 September 2012 07:51 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I think you'll have to ask at the RAP newsgroup. They must be running
the Realm too for RCP applications.

Tom

Am 06.09.12 09:28, schrieb Charlie Mordant:
> Hi,
>
> I'm trying to make JFace databinding working with RWT and Virgo.
>
> The problem is that when I go to a page that use Databinding, it
> complains about that the validation realm cannot be null.
>
> The solution I found navigating to forums to launch the UI like this:
>
> final Display display = Display.getDefault();
> Realm.runWithDefault(SWTObservables.getRealm(display), new
> Runnable() {
> public void run() {... }
>
> Doesn't because the thread is already finished when I arrive to my page.
>
> If I put the above loop, it complains that sleep is not authorized in a
> simpleexecutioncontext.
> while(!shell.isDisposed()) {
> if (!display.readAndDispatch())
> display.sleep();
> }
>
>
>
> Have you got an idea of how I can make databinding work?
>
> Best regards,
Re: [Databinding] Osgi RWT and JFace DataBinding [message #908909 is a reply to message #908902] Thu, 06 September 2012 08:05 Go to previous message
Charlie Mordant is currently offline Charlie MordantFriend
Messages: 88
Registered: July 2010
Member

Thank you, I will!
Previous Topic:[Databinding] Binding a string to an EMF enum inside a table viewer
Next Topic:Combining Wizards
Goto Forum:
  


Current Time: Fri Apr 26 14:53:15 GMT 2024

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

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

Back to the top