]> git.argeo.org Git - lgpl/argeo-commons.git/blob - security/eclipse/plugins/org.argeo.security.ui.application/src/main/java/org/argeo/security/ui/application/SecureWorkbenchAdvisor.java
Small improvements
[lgpl/argeo-commons.git] / security / eclipse / plugins / org.argeo.security.ui.application / src / main / java / org / argeo / security / ui / application / SecureWorkbenchAdvisor.java
1 package org.argeo.security.ui.application;
2
3 import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
4 import org.eclipse.ui.application.WorkbenchAdvisor;
5 import org.eclipse.ui.application.WorkbenchWindowAdvisor;
6
7 public class SecureWorkbenchAdvisor extends WorkbenchAdvisor {
8
9 static final String DEFAULT_PERSPECTIVE_ID = "org.argeo.security.ui.securityPerspective"; //$NON-NLS-1$
10
11 public final static String INITIAL_PERSPECTIVE_PROPERTY = "org.argeo.security.ui.initialPerspective";
12 private String initialPerspective = System.getProperty(
13 INITIAL_PERSPECTIVE_PROPERTY, DEFAULT_PERSPECTIVE_ID);
14
15 public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
16 IWorkbenchWindowConfigurer configurer) {
17 return new SecureWorkbenchWindowAdvisor(configurer);
18 }
19
20 public String getInitialWindowPerspectiveId() {
21 return initialPerspective;
22 }
23 }