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

Dan Phifer wrote:
How can I get the "Save Perspective As..." to work for my RCP app? Currently, all Saved perspectives are forgotten when I restart the RCP applcation.


It works for me.

Are you calling setSaveAndRestore?

public class ClientWorkbenchAdvisor extends WorkbenchAdvisor {


/*
* (non-Javadoc)
* @see org.eclipse.ui.application.WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer)
*/
public void initialize(IWorkbenchConfigurer configurer) {
// make sure we always save and restore workspace state
configurer.setSaveAndRestore(true);
}


--
Alex