Persisting the current perspective state of an RCP

If you're developing on Eclipse RCP applications it may be interesting to save the perspective layout and open views of the user s.t. when he launches the application the next time, everything looks as before. That may sound difficult but actually it is really simple.
In your, in the initialize(IWorkbenchConfigurer) just write the following:

public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {

public void initialize(IWorkbenchConfigurer configurer) {

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.



Your ad here?