[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Refresh View after wizard finishes.

I have a wizard that opens a database connection. After the wizard finishes, I need to refresh a view with data from the database.

Everything is working, except that I don't know how to refresh the view after the wizard is complete.

What is the best way to do this?

You might also attach a 'ModelListener' on view which listens for updates the model propagates (implement this when the wizard does changes to the model). Then let the view itself call refresh when the model has changed.
For better performance do some lazy refresh - with that I mean just refresh the model when the wizard finishes and the model changes are all done.


Markus Wolf
--
>
> emedia-solutions wolf
> Wedeler Landstrasse 63
> 22559 Hamburg
>
>> phone: (+49) 40 550 083 70
>>   web: http://www.emedia-solutions-wolf.de
>>  mail: markus@xxxxxxxxxxxxxxxxxxxxxxxx
>>   pgp: http://wwwkeys.de.pgp.net
>