1 package org
.argeo
.slc
.client
.rcp
;
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
;
9 * implements initial perspective and saveAndRestore status of the workbench.
14 public class SlcSecureWorkbenchAdvisor
extends WorkbenchAdvisor
{
16 // private static final String PERSPECTIVE_ID =
17 // "org.argeo.slc.client.ui.perspectives.slcExecution";
18 static final String DEFAULT_PERSPECTIVE_ID
= "org.argeo.security.ui.securityPerspective"; //$NON-NLS-1$
20 public final static String INITIAL_PERSPECTIVE_PROPERTY
= "org.argeo.security.ui.initialPerspective";
21 private String initialPerspective
= System
.getProperty(
22 INITIAL_PERSPECTIVE_PROPERTY
, DEFAULT_PERSPECTIVE_ID
);
24 public WorkbenchWindowAdvisor
createWorkbenchWindowAdvisor(
25 IWorkbenchWindowConfigurer configurer
) {
26 return new SlcSecureWorkbenchWindowAdvisor(configurer
);
29 public String
getInitialWindowPerspectiveId() {
30 // return PERSPECTIVE_ID;
31 return initialPerspective
;
35 public void initialize(IWorkbenchConfigurer configurer
) {
36 super.initialize(configurer
);
38 // To remember the user's layout and window size for the next time he
39 // starts the application
40 // configurer.setSaveAndRestore(true);