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?
精彩评论