Persisting the current perspective state of an RCP
1 min read
1 min read
public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {This should work fine. In case it doesn't, try to get the WorkbenchConfigurer by calling the method getWorkbenchConfigurer() and invoke the setSaveAndRestore(...) on that.
...
@Override
public void initialize(IWorkbenchConfigurer configurer) {
super.initialize(configurer);
configurer.setSaveAndRestore(true);
...
}
...
}