Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » update one view's model from another
update one view's model from another [message #464577] Fri, 09 March 2007 15:37 Go to next message
sudhakar is currently offline sudhakarFriend
Messages: 19
Registered: July 2009
Junior Member
I have two views. In the first view I have a button that should update
the second view's model. I use databinding to synchronize the model to
view in the second view.

How can I access the model instance in the second view from my first
view so that I can update it?

Thanks in advance for any help.
-sud
Re: update one view's model from another [message #464682 is a reply to message #464577] Tue, 13 March 2007 15:11 Go to previous message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

You need to decouple your user interface and data. Let the data be
contained in some static class somewhere and it should allow adding
listeners to notify once the state of of the data changes. So the first
view will modify the data and the second will listen and the static
class will notify.
sudhakar wrote:
> I have two views. In the first view I have a button that should update
> the second view's model. I use databinding to synchronize the model to
> view in the second view.
>
> How can I access the model instance in the second view from my first
> view so that I can update it?
>
> Thanks in advance for any help.
> -sud
>
Previous Topic:Cancel ViewPart closing
Next Topic:inVisible View in Perpective
Goto Forum:
  


Current Time: Wed Oct 09 00:54:24 GMT 2024

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

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

Back to the top