4db1c83d44cc5fc96806805924538177e532afd6
[taxeditor.git] / src / eu / etaxonomy / taxeditor / ApplicationWorkbenchAdvisor.java
1 package eu.etaxonomy.taxeditor;
2
3 import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
4 import org.eclipse.ui.application.WorkbenchAdvisor;
5 import org.eclipse.ui.application.WorkbenchWindowAdvisor;
6
7 /**
8 * This workbench advisor creates the window advisor, and specifies
9 * the perspective id for the initial window.
10 */
11 public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
12
13 private static final String PERSPECTIVE_ID = "eu.etaxonomy.taxeditor.perspective";
14
15 public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
16 return new ApplicationWorkbenchWindowAdvisor(configurer);
17 }
18
19 public String getInitialWindowPerspectiveId() {
20 return PERSPECTIVE_ID;
21 }
22
23 }