1 11 package org.eclipse.ui.internal.part.services; 12 13 import org.eclipse.jface.action.IAction; 14 import org.eclipse.jface.action.ICoolBarManager; 15 import org.eclipse.jface.action.IMenuManager; 16 import org.eclipse.jface.action.IToolBarManager; 17 import org.eclipse.ui.internal.part.components.services.IPartActionBars; 18 19 public class NullPartActionBars implements IPartActionBars { 20 21 private IMenuManager menuManager = new NullMenuManager(); 22 private IToolBarManager toolbarManager = new NullToolBarManager(); 23 private ICoolBarManager nullCbm = new NullCoolBarManager(); 24 25 public ICoolBarManager getCoolBarManager() { 26 return nullCbm; 27 } 28 29 public void clearGlobalActionHandlers() { 30 31 } 32 33 public IAction getGlobalActionHandler(String actionId) { 34 return null; 35 } 36 37 public IMenuManager getPartMenuManager() { 38 return menuManager; 39 } 40 41 public IMenuManager getMenuBarManager() { 42 return menuManager; 43 } 44 45 public IToolBarManager getToolBarManager() { 46 return toolbarManager; 47 } 48 49 public void setGlobalActionHandler(String actionId, IAction handler) { 50 } 51 52 public void updateActionBars() { 53 } 54 55 } 56 | Popular Tags |