1 11 package org.eclipse.ui.internal; 12 13 import org.eclipse.jface.action.IMenuManager; 14 import org.eclipse.jface.action.IToolBarManager; 15 import org.eclipse.ui.IActionBars; 16 import org.eclipse.ui.SubActionBars; 17 import org.eclipse.ui.services.IServiceLocator; 18 19 22 public class ViewActionBars extends SubActionBars { 23 private ViewPane pane; 24 25 28 public ViewActionBars(IActionBars parent, 29 final IServiceLocator serviceLocator, ViewPane pane) { 30 super(parent, serviceLocator); 31 this.pane = pane; 32 } 33 34 40 public IMenuManager getMenuManager() { 41 return pane.getMenuManager(); 42 } 43 44 50 public IToolBarManager getToolBarManager() { 51 return pane.getToolBarManager(); 52 } 53 54 58 public void updateActionBars() { 59 pane.updateActionBars(); 60 getStatusLineManager().update(false); 61 fireActionHandlersChanged(); 62 } 63 } 64 | Popular Tags |