1 | package de.uka.ipd.sdq.pcmbench.application; |
2 | |
3 | import org.eclipse.swt.graphics.Point; |
4 | import org.eclipse.ui.application.ActionBarAdvisor; |
5 | import org.eclipse.ui.application.IActionBarConfigurer; |
6 | import org.eclipse.ui.application.IWorkbenchWindowConfigurer; |
7 | import org.eclipse.ui.application.WorkbenchWindowAdvisor; |
8 | |
9 | public class PCMBenchApplicationWorkbenchWindowAdvisor extends |
10 | WorkbenchWindowAdvisor { |
11 | |
12 | public PCMBenchApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { |
13 | super(configurer); |
14 | } |
15 | |
16 | public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) { |
17 | return new PCMBenchApplicationActionBarAdvisor(configurer); |
18 | } |
19 | |
20 | public void preWindowOpen() { |
21 | IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); |
22 | configurer.setInitialSize(new Point(700, 550)); |
23 | configurer.setShowCoolBar(true); |
24 | configurer.setShowStatusLine(true); |
25 | configurer.setShowPerspectiveBar(true); |
26 | configurer.setTitle("Palladio Component Model Modelling Bench"); |
27 | } |
28 | |
29 | } |