]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.rcp/src/main/java/org/argeo/slc/client/rcp/ApplicationWorkbenchAdvisor.java
Add support for combo box in editing parameters.
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.rcp / src / main / java / org / argeo / slc / client / rcp / ApplicationWorkbenchAdvisor.java
1 package org.argeo.slc.client.rcp;
2
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;
7
8 /**
9 * implements initial perspective and saveAndRestore status of the workbench.
10 *
11 * @author bsinou
12 *
13 */
14 public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
15
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";
18
19 public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
20 IWorkbenchWindowConfigurer configurer) {
21 return new ApplicationWorkbenchWindowAdvisor(configurer);
22 }
23
24 public String getInitialWindowPerspectiveId() {
25 return PERSPECTIVE_ID;
26 }
27
28 @Override
29 public void initialize(IWorkbenchConfigurer configurer) {
30 super.initialize(configurer);
31
32 // To remember the user's layout and window size for the next time he
33 // starts the application
34 // configurer.setSaveAndRestore(true);
35 }
36
37 }