]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.rap/src/main/java/org/argeo/slc/client/rap/ApplicationWorkbenchAdvisor.java
Adapt to changes in Commons
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.rap / src / main / java / org / argeo / slc / client / rap / ApplicationWorkbenchAdvisor.java
1 package org.argeo.slc.client.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
9 * the perspective id for the initial window.
10 */
11 public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
12
13 private static final String PERSPECTIVE_ID = "org.argeo.slc.client.ui.perspectives.slcExecution";
14
15 public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
16 return new SlcRapSecureWorkbenchWindowAdvisor(configurer);
17 }
18
19 public String getInitialWindowPerspectiveId() {
20 return PERSPECTIVE_ID;
21 }
22 }