1 11 package org.eclipse.jface.action; 12 13 import org.eclipse.core.runtime.Assert; 14 15 22 public class SubCoolBarManager extends SubContributionManager implements 23 ICoolBarManager { 24 25 32 public SubCoolBarManager(ICoolBarManager mgr) { 33 super(mgr); 34 Assert.isNotNull(mgr); 35 } 36 37 40 public void add(IToolBarManager toolBarManager) { 41 Assert.isNotNull(toolBarManager); 42 super.add(new ToolBarContributionItem(toolBarManager)); 43 } 44 45 48 public int getStyle() { 49 return ((ICoolBarManager) getParent()).getStyle(); 52 } 53 54 59 protected final ICoolBarManager getParentCoolBarManager() { 60 return (ICoolBarManager) getParent(); 63 } 64 65 68 public boolean getLockLayout() { 69 return getParentCoolBarManager().getLockLayout(); 70 } 71 72 75 public void setLockLayout(boolean value) { 76 } 77 78 81 public IMenuManager getContextMenuManager() { 82 return null; 83 } 84 85 88 public void setContextMenuManager(IMenuManager menuManager) { 89 } 91 92 95 public void update(boolean force) { 96 getParentCoolBarManager().update(force); 100 } 101 102 } 103 | Popular Tags |