[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: "Save Perspective As..."

Yes, I am calling save and restore. Maybe I have a different problem. When I go to Window > Open Perspective > Other ... the saved perspectives never appear there. However, if I save a perspective, the name will appear in the perspective bar, but not in the "Other..." window.

All I did was add:

MenuManager showViewMenu = new MenuManager("Show &View");
IContributionItem viewList = ContributionItemFactory.VIEWS_SHORTLIST.create(window);
showViewMenu.add(viewList);
windowMenu.add(showViewMenu);


to the fillMenuBar function in my ActionBarAdvisor. Is there anything else I would need to do in order to get saved perspectives in the list?

Here's another clue: If I run the product from the PDE, everything works fine. Saved perspectives show up in the list. But, if I export the product, saved perspectives do not persist between sessions (but my views appear as I left them in the last session, which means setSaveAndRestore(true) is definitely happening).