1 package eu
.etaxonomy
.taxeditor
.prototype2
;
3 import org
.eclipse
.ui
.application
.IWorkbenchConfigurer
;
4 import org
.eclipse
.ui
.application
.IWorkbenchWindowConfigurer
;
5 import org
.eclipse
.ui
.application
.WorkbenchAdvisor
;
6 import org
.eclipse
.ui
.application
.WorkbenchWindowAdvisor
;
8 public class ApplicationWorkbenchAdvisor
extends WorkbenchAdvisor
{
10 private static final String PERSPECTIVE_ID
= "eu.etaxonomy.taxeditor.prototype2.perspective";
12 public WorkbenchWindowAdvisor
createWorkbenchWindowAdvisor(
13 IWorkbenchWindowConfigurer configurer
) {
14 return new ApplicationWorkbenchWindowAdvisor(configurer
);
17 public String
getInitialWindowPerspectiveId() {
18 return PERSPECTIVE_ID
;
21 public void initialize(IWorkbenchConfigurer configurer
) {
22 super.initialize(configurer
);
24 // Remembers the user's layout and window size
25 // for the next time application is started
26 configurer
.setSaveAndRestore(true);