1 11 package org.eclipse.ui.internal.application; 12 13 import org.eclipse.ui.application.ActionBarAdvisor; 14 import org.eclipse.ui.application.IActionBarConfigurer; 15 import org.eclipse.ui.application.WorkbenchAdvisor; 16 17 24 public class CompatibilityActionBarAdvisor extends ActionBarAdvisor { 25 26 private WorkbenchAdvisor wbAdvisor; 27 28 34 public CompatibilityActionBarAdvisor(WorkbenchAdvisor wbAdvisor, IActionBarConfigurer configurer) { 35 super(configurer); 36 this.wbAdvisor = wbAdvisor; 37 } 38 39 public void fillActionBars(int flags) { 40 IActionBarConfigurer abc = getActionBarConfigurer(); 41 wbAdvisor.fillActionBars(abc.getWindowConfigurer().getWindow(), abc, flags); 42 } 43 44 public boolean isApplicationMenu(String menuId) { 45 IActionBarConfigurer abc = getActionBarConfigurer(); 46 return wbAdvisor.isApplicationMenu(abc.getWindowConfigurer(), menuId); 47 } 48 } 49 | Popular Tags |