Changing model for a TableViewer in a View [message #333490] |
Mon, 15 December 2008 10:52  |
Eclipse User |
|
|
|
Originally posted by: sean.mitchwood.com
Hi All..
I'm working on an RCP app that has a view which lists items in a
TableViewer.
The view is backed by a model which is provided as a service by OSGi
declarative services, and so typically it may or may not available.
My problem is that when the model turns up in my ServiceTracker, and I
call setInput(model) and then refresh() on the TableViewer, my View does
not refresh itself.
In the ContentProvider I can see that inputChanged() is being called,
but not getElements().
I'm not sure if I've approached this the right way, but it's certainly
not working as I expected.
Anyone have any insight on this problem?
Cheers,
Sean
|
|
|
|
|
|
|
|
|
|
|
|
Re: Changing model for a TableViewer in a View [message #333640 is a reply to message #333490] |
Fri, 19 December 2008 07:15  |
Eclipse User |
|
|
|
Could you please provide some sample code on how you invoke the
methods in question?
On Mon, 15 Dec 2008 10:52:32 -0500, Sean Mitchell <sean@mitchwood.com>
wrote:
>Hi All..
>
>I'm working on an RCP app that has a view which lists items in a
>TableViewer.
>
>The view is backed by a model which is provided as a service by OSGi
>declarative services, and so typically it may or may not available.
>
>My problem is that when the model turns up in my ServiceTracker, and I
>call setInput(model) and then refresh() on the TableViewer, my View does
>not refresh itself.
>
>In the ContentProvider I can see that inputChanged() is being called,
>but not getElements().
>
>I'm not sure if I've approached this the right way, but it's certainly
>not working as I expected.
>
>Anyone have any insight on this problem?
>
>Cheers,
>
>Sean
|
|
|
Powered by
FUDForum. Page generated in 0.28970 seconds