简体   繁体   中英

How to update and maintain viewer state through different executions in eclipse RCP?

I need to maintain viewer state in Eclipse even the eclipse project is closed. Also I need to update the viewer like if I am reloading it from eclipse menu.

Using viewer.refresh() just refreshes the tableviewer that I have inside it but it doesn't update it (re-running the code for filling the columns). I tried to use viewer.update(param1,param2) but I don't know what is param2, actually what is the right one. This update can be done manually by reloading the view from Window->Show view->Other. How can I done this programatically ?

如果要重置表中显示的数据,则必须使用要显示的数据再次调用TableViewer.setInput(xxx)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM