Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tableviewer, Content-, Labelprovider - Question
Tableviewer, Content-, Labelprovider - Question [message #439203] Wed, 07 July 2004 12:33 Go to next message
Eclipse UserFriend
Originally posted by: schuro.bluewin.ch

Hi,

I'm littlebit confused about how to use this MVC pattern.
I'm using a database and the view should be updated whenever the database
content
changes (by sql updates, inserts, etc.)

I have the following classes:
- a Contentprovider, a LabelProvider and a Model who fetches initially all
the database rows.
(similar to the
http://www.eclipse.org/articles/Article-Table-viewer/table_v iewer.html)

How do I accomplish that the view is correctly updated ?
Has anybody a working example ??

Thanks
Roland
Re: Tableviewer, Content-, Labelprovider - Question [message #439219 is a reply to message #439203] Wed, 07 July 2004 15:47 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I'm not sure what you're aiming at. I faced the same problem some days ago.
I'm writing a lib to create databaseforms with parent-child
relationhsip. The table acts as a subform and when the parent-form
changes (e.g. scroll 2 next entry) I have to reload the values in the
table. Is that your problem, reloading the content, then
"viewer_.refresh();" will do the trick. If that's note the case give me
a more information and I think I can help you because aftersome trouble
with DropDowns, I got everything to work.

Tom

Schuler Roland wrote:
> Hi,
>
> I'm littlebit confused about how to use this MVC pattern.
> I'm using a database and the view should be updated whenever the database
> content
> changes (by sql updates, inserts, etc.)
>
> I have the following classes:
> - a Contentprovider, a LabelProvider and a Model who fetches initially all
> the database rows.
> (similar to the
> http://www.eclipse.org/articles/Article-Table-viewer/table_v iewer.html)
>
> How do I accomplish that the view is correctly updated ?
> Has anybody a working example ??
>
> Thanks
> Roland
>
>
>
>
Previous Topic:Exporting Data from SWT to Spreadsheat (e.g. Excel)
Next Topic:Layouts vs. setLocation()
Goto Forum:
  


Current Time: Fri Sep 20 15:23:36 GMT 2024

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

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

Back to the top