1 2 25 package org.objectweb.dolphin.rcp; 26 27 import org.eclipse.swt.graphics.Point; 28 import org.eclipse.ui.application.ActionBarAdvisor; 29 import org.eclipse.ui.application.IActionBarConfigurer; 30 import org.eclipse.ui.application.IWorkbenchWindowConfigurer; 31 import org.eclipse.ui.application.WorkbenchWindowAdvisor; 32 33 37 public class DolphinWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor { 38 39 43 public DolphinWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer){ 44 super(configurer); 45 } 46 47 51 public void preWindowOpen(IWorkbenchWindowConfigurer configurer) { 52 configurer.setInitialSize(new Point(800, 600)); 54 configurer.setShowCoolBar(true); 55 configurer.setShowStatusLine(true); 56 } 58 59 62 public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer){ 63 return new DolphinActionBarAdvisor(configurer); 64 } 65 } 66 | Popular Tags |