Listen to data changes with CommonNavigator [message #462866] |
Thu, 01 February 2007 10:49  |
Eclipse User |
|
|
|
How can I let a CommonNavigator listen to data changes without extending it?
Currently I extend CommonNavigator and implement a listener interface. Are
there other ways? Thanks for your help.
--
Gruesse/Regards,
Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
|
|
|
|
|
|
Re: Listen to data changes with CommonNavigator [message #463092 is a reply to message #462914] |
Tue, 06 February 2007 12:20  |
Eclipse User |
|
|
|
Sebastian Fuchs schrieb:
> you get your viewer delivered. you could cast it to StructuredViewer and
> store it.
>
> call
> viewer.refresh() on structural changes or
> viewer.update() on label changes
Thanks, Sebastian, I think you are right. In my case, however, the model
changes completely (e.g. from null to a non-null model) so that I have to
call viewer.setInput() in the listener method of the contentprovider.
--
Gruesse/Regards,
Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
|
|
|
Powered by
FUDForum. Page generated in 0.25632 seconds