1 | package de.uka.ipd.sdq.pcmbench.application; |
2 | |
3 | import org.eclipse.ui.application.IWorkbenchConfigurer; |
4 | import org.eclipse.ui.application.IWorkbenchWindowConfigurer; |
5 | import org.eclipse.ui.application.WorkbenchWindowAdvisor; |
6 | |
7 | public class PCMBenchWorkbenchAdvisor extends WorkbenchAdvisorHack { |
8 | |
9 | private static final String PCMBENCH_PERSPECTIVE_ID = "de.uka.ipd.sdq.PCMBench.perspective"; |
10 | //private static final String PCMBENCH_PERSPECTIVE_ID = "de.uka.ipd.sdq.pcmbench.componentdeveloper_perspective"; |
11 | |
12 | public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { |
13 | return new PCMBenchApplicationWorkbenchWindowAdvisor(configurer); |
14 | } |
15 | |
16 | public void initialize(IWorkbenchConfigurer configurer) { |
17 | super.initialize(configurer); |
18 | configurer.setSaveAndRestore(true); |
19 | } |
20 | |
21 | public String getInitialWindowPerspectiveId() { |
22 | return PCMBENCH_PERSPECTIVE_ID; |
23 | } |
24 | } |