[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: how to update a view in real-time?

Each view in RCP have a unique id. Use that id to findView(..) or showView(..) the view that contains the table dat you want to update.
Those two methods return an IViewPart which is basically the instance
of your view. You can safely typecast it to the actual class type
of your view and then call a method in your view ie.. setData(...)


Nick DelRossi wrote:
lets say I have a class called "CurrentData" that keeps track of some data that keeps changing, and it has a method like getData() which just returns the current data

now if I had a view and i wanted to constantly update a table in the view with the current data, how might i accomplish that?

Ive read how to update a view based on an action that occurs in another view or from the menumanager, but i want this view to keep updating without being triggered by any user action.

thanks for any help you can offer
Nick