开发者

RCP SaveAndRestore does not reopen views

开发者 https://www.devze.com 2023-04-07 16:58 出处:网络
I have a RCP application. Its default perspective opens two views on thew left and the bottom, in relation to the editor area. The option SaveAndRestore is set to true.

I have a RCP application. Its default perspective opens two views on thew left and the bottom, in relation to the editor area. The option SaveAndRestore is set to true. Upon the next startup of t开发者_运维技巧he app, both views are closed. Why? What am i doing wrong?


Well it seems, that i had something wrong with my ids. Recreated some of them and checked them. Now everything is doing fine.


I assume you closed the views manually. Use the command org.eclipse.ui.window.resetPerspective to reset the perspective to its initial state or use the "Clear" flag for the Workspace in your launch configuration.


Do you have a saveState(memento) and init(IViewSite site, IMemento memento) implemented for your view?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号