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.IStatusLineManager; 17 import org.eclipse.jface.action.IToolBarManager; 18 import org.eclipse.ui.IActionBars2; 19 20 25 public class NullActionBars implements IActionBars2 { 26 27 private NullCoolBarManager coolbarManager = new NullCoolBarManager(); 28 private NullMenuManager menuManager = new NullMenuManager(); 29 private NullToolBarManager toolbarManager = new NullToolBarManager(); 30 private NullStatusLineManager statusLineManager = new NullStatusLineManager(); 31 32 35 public void clearGlobalActionHandlers() { 36 } 37 38 41 public ICoolBarManager getCoolBarManager() { 42 return coolbarManager; 43 } 44 45 48 public IAction getGlobalActionHandler(String actionId) { 49 return null; 50 } 51 52 55 public IMenuManager getMenuManager() { 56 return menuManager; 57 } 58 59 62 public IStatusLineManager getStatusLineManager() { 63 return statusLineManager; 64 } 65 66 69 public IToolBarManager getToolBarManager() { 70 return toolbarManager; 71 } 72 73 76 public void setGlobalActionHandler(String actionId, IAction handler) { 77 } 78 79 82 public void updateActionBars() { 83 } 84 85 } 86 | Popular Tags |