I am using Eclipse RCP 3.8 IDE. I want to access the workbench.xml and edit the value of a specific attribute in a certain node when saveState() or dispose() is called, so that when the product is initialized the next time it is loaded with the vales specified.
So far I have tried using the memento obtained in the saveState(), however it seems that I get an empty memento (all its fields are null).
Can anybody please suggest a way out of this..
Thanks in Advance.
我不能完全确定这是否真的是您要查找的内容,但是也许您可以看一下工作台侦听器 :在关闭所有窗口之后,工作台关闭期间将调用postShutdown(IWorkbench)
方法。
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.