Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [Databinding]Binding multiple TreeViewers in different session to single model
[Databinding]Binding multiple TreeViewers in different session to single model [message #495185] Wed, 04 November 2009 03:48 Go to next message
Eclipse UserFriend
Originally posted by: cheney_chen.i-len.com

Hi All,

There is a thread[1] discuss about binding multiple TreeViewers to
single model, So what about binding multiple TreeViewers in different
session to single model? is it thread safely?

anybody give me the suggestion?

Best Regards,
Cheney

[1] http://www.eclipse.org/forums/index.php?t=msg&th=156897& amp;start=0&S=0583750f1c755db0d118cf6607afeca5
Re: [Databinding]Binding multiple TreeViewers in different session to single model [message #495210 is a reply to message #495185] Wed, 04 November 2009 07:54 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

This heavily depends on your domain model! If your model (e.g. EMF
models are NOT threadsafe and most JavaBeanModels are neither) is thread
safe Eclipse Databinding with its realm concept will work because it's
automatically syncing changes into your UI-Thread.

What you always have to keep in mind is that why should User A see
unpersisted model changes from User B? You are going to run in many race
conditions - my suggestion is using CDO to share model between different
clients because it takes care on this problem (and much more).

Tom

Cheney Chen schrieb:
> Hi All,
>
> There is a thread[1] discuss about binding multiple TreeViewers to
> single model, So what about binding multiple TreeViewers in different
> session to single model? is it thread safely?
>
> anybody give me the suggestion?
>
> Best Regards,
> Cheney
>
> [1] http://www.eclipse.org/forums/index.php?t=msg&th=156897& amp;start=0&S=0583750f1c755db0d118cf6607afeca5
Re: [Databinding]Binding multiple TreeViewers in different session to single model [message #495477 is a reply to message #495210] Thu, 05 November 2009 01:34 Go to previous message
Eclipse UserFriend
Originally posted by: cheney_chen.i-len.com

Hi Tom,

Thanks for your reply and suggestion.

Best Regards,
Cheney

Tom Schindl wrote:
> Hi,
>
> This heavily depends on your domain model! If your model (e.g. EMF
> models are NOT threadsafe and most JavaBeanModels are neither) is thread
> safe Eclipse Databinding with its realm concept will work because it's
> automatically syncing changes into your UI-Thread.
>
> What you always have to keep in mind is that why should User A see
> unpersisted model changes from User B? You are going to run in many race
> conditions - my suggestion is using CDO to share model between different
> clients because it takes care on this problem (and much more).
>
> Tom
Previous Topic:Re: RAP with EMF model
Next Topic:[Tree] Focus Problem
Goto Forum:
  


Current Time: Thu Apr 25 10:02:48 GMT 2024

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

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

Back to the top