had to rename the packages to make them compliant with buckminster
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / test / java / eu / etaxonomy / taxeditor / bulkeditor / ApplicationWorkbenchAdvisor.java
1 package eu.etaxonomy.taxeditor.bulkeditor;
2
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;
7
8 public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
9
10 private static final String PERSPECTIVE_ID = Perspective.ID;
11
12 public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
13 IWorkbenchWindowConfigurer configurer) {
14 return new ApplicationWorkbenchWindowAdvisor(configurer);
15 }
16
17 @Override
18 public void initialize(IWorkbenchConfigurer configurer) {
19 super.initialize(configurer);
20
21 // Remembers the user's view layout, window size, window location etc.
22 // for the next time application is started
23 configurer.setSaveAndRestore(true);
24 }
25
26 public String getInitialWindowPerspectiveId() {
27 return PERSPECTIVE_ID;
28 }
29
30 }