Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Propagating changes from ContentProvider to JFace View
Propagating changes from ContentProvider to JFace View [message #460717] Mon, 05 September 2005 09:59 Go to next message
Andreas is currently offline AndreasFriend
Messages: 29
Registered: July 2009
Junior Member
Hi everybody,

iŽve read through a lot of documentation by now, but i canŽt get my
programm working the way i want.

I have a TableViewer which should display data from a model.
For this Table Viewer I have set a ContentProvider, which implements the
Interface IStructuredContentProvider (the conent Provider is in a seperate
class).

The ContentProvider is connected through a PropertyChangeEvent, with the
underlying data model, which i want to represent in the TableViewer.

Now everytime the underlying data model fires a PropertyChangeEvent the
ContentProvider for the TableViewer should be updated and the TableViewer
should display the new model data.

I guess this is fairly basic, but none of the examples iŽve run into, so
far, showed how to do this.
How can i get this running?
In special: How can i update the TableViewer with the new data from the
ContentProvider?
Is this done automatically? I havenŽt seen any examples for this.


Greetings
any help is appreciated
Andreas
Re: Propagating changes from ContentProvider to JFace View [message #460719 is a reply to message #460717] Mon, 05 September 2005 12:23 Go to previous message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Andreas" <andreas.a.fleck@eads.net> wrote in message
news:8b3367b286ca8d20702d006f2ca729cc$1@www.eclipse.org...
> Hi everybody,
>
> i
Previous Topic:TableViewer
Next Topic:2 trees in sync with one scrollbar
Goto Forum:
  


Current Time: Thu Apr 25 10:43:36 GMT 2024

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

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

Back to the top