1 11 package org.eclipse.ui.internal; 12 13 import org.eclipse.core.runtime.Assert; 14 import org.eclipse.jface.action.IAction; 15 import org.eclipse.jface.action.ICoolBarManager; 16 import org.eclipse.jface.action.IMenuManager; 17 import org.eclipse.jface.action.IStatusLineManager; 18 import org.eclipse.jface.action.IToolBarManager; 19 import org.eclipse.ui.IActionBars2; 20 import org.eclipse.ui.services.IServiceLocator; 21 22 public class WWinActionBars implements IActionBars2 { 23 private WorkbenchWindow window; 24 25 28 public WWinActionBars(WorkbenchWindow window) { 29 super(); 30 this.window = window; 31 } 32 33 36 public void clearGlobalActionHandlers() { 37 } 38 39 43 public ICoolBarManager getCoolBarManager() { 44 return window.getCoolBarManager2(); 45 } 46 47 54 public IAction getGlobalActionHandler(String actionID) { 55 return null; 56 } 57 58 64 public IMenuManager getMenuManager() { 65 return window.getMenuManager(); 66 } 67 68 public final IServiceLocator getServiceLocator() { 69 return window; 70 } 71 72 78 public IStatusLineManager getStatusLineManager() { 79 return window.getStatusLineManager(); 80 } 81 82 86 public IToolBarManager getToolBarManager() { 87 Assert.isTrue(false); 89 return null; 90 } 91 92 104 public void setGlobalActionHandler(String actionID, IAction handler) { 105 } 106 107 112 public void updateActionBars() { 113 window.updateActionBars(); 114 } 115 } 116 | Popular Tags |