]> git.argeo.org Git - lgpl/argeo-commons.git/blob - rap/ApplicationWorkbenchAdvisor.java
Prepare next development cycle
[lgpl/argeo-commons.git] / rap / ApplicationWorkbenchAdvisor.java
1 package org.argeo.sandbox.ui.rap;
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 the
9 * perspective id for the initial window.
10 */
11 public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
12
13 private static final String PERSPECTIVE_ID = Perspective.ID;
14
15 public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
16 IWorkbenchWindowConfigurer configurer) {
17 return new ApplicationWorkbenchWindowAdvisor(configurer);
18 }
19
20 public String getInitialWindowPerspectiveId() {
21 return PERSPECTIVE_ID;
22 }
23 }