KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > $packageName$ > ApplicationWorkbenchWindowAdvisor


1 package $packageName$;
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 ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
10
11     public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
12         super(configurer);
13     }
14
15     public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) {
16         return new ApplicationActionBarAdvisor(configurer);
17     }
18     
19     public void preWindowOpen() {
20         IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
21         configurer.setInitialSize(new Point(600, 400));
22         configurer.setShowCoolBar(true);
23         configurer.setShowStatusLine(false);
24     }
25     
26 }
27
Popular Tags