package org.csstudio.opibuilder.adl2boy;

import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchAdvisor;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;

public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {

	private static final String PERSPECTIVE_ID = "org.csstudio.opibuilder.adl2boy.perspective";

	public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
			IWorkbenchWindowConfigurer configurer) {
		return new ApplicationWorkbenchWindowAdvisor(configurer);
	}

	public String getInitialWindowPerspectiveId() {
		return PERSPECTIVE_ID;
	}

}

@@ -35,16 +35,72 @@
 l2boy;%0A%0A
+import org.eclipse.ui.application.IWorkbenchConfigurer;%0A
 import o
@@ -672,12 +672,123 @@
 E_ID;%0A%09%7D
+%0A%09@Override%0A%09public void initialize(IWorkbenchConfigurer configurer) %7B%0A%09%09configurer.setSaveAndRestore(true);%0A%09%7D
 %0A%0A%7D%0A

Add save/restore