|
Re: Tableviewer, Content-, Labelprovider - Question [message #439219 is a reply to message #439203] |
Wed, 07 July 2004 15:47 |
Thomas Schindl 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
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03709 seconds