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 ApplicationWorkbenchAdvisor
extends WorkbenchAdvisor
{
16 private static final String PERSPECTIVE_ID
= "org.argeo.slc.client.ui.perspectives.slcExecution";
17 // private static final String PERSPECTIVE_ID = "org.argeo.slc.client.ui.dist.distributionPerspective";
19 public WorkbenchWindowAdvisor
createWorkbenchWindowAdvisor(
20 IWorkbenchWindowConfigurer configurer
) {
21 return new ApplicationWorkbenchWindowAdvisor(configurer
);
24 public String
getInitialWindowPerspectiveId() {
25 return PERSPECTIVE_ID
;
29 public void initialize(IWorkbenchConfigurer configurer
) {
30 super.initialize(configurer
);
32 // To remember the user's layout and window size for the next time he
33 // starts the application
34 // configurer.setSaveAndRestore(true);