Note that these objects are only available to the main application (the plug-in that creates and owns the workbench).
This interface is not intended to be implemented by clients.
111112113114115116117118119120121122
* * @see org.eclipse.ui.application.WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer) */ @Override public void initialize(IWorkbenchConfigurer configurer) { IWorkbenchConfigurer workbenchConfigurer = getWorkbenchConfigurer(); /* Save UI state and restore after restart */ workbenchConfigurer.setSaveAndRestore(true); super.initialize(configurer); }
353637383940414243
return PERSPECTIVE_ID; } @Override protected IWorkbenchConfigurer getWorkbenchConfigurer() { IWorkbenchConfigurer configurer = super.getWorkbenchConfigurer(); configurer.setSaveAndRestore(true); return configurer; }