1 11 12 package org.eclipse.ui.internal.navigator.resources.actions; 13 14 import org.eclipse.jface.action.IMenuManager; 15 import org.eclipse.ui.IActionBars; 16 import org.eclipse.ui.actions.ActionContext; 17 import org.eclipse.ui.navigator.CommonActionProvider; 18 import org.eclipse.ui.navigator.ICommonActionExtensionSite; 19 20 24 public class EditActionProvider extends CommonActionProvider { 25 26 private EditActionGroup editGroup; 27 28 private ICommonActionExtensionSite site; 29 30 35 public void init(ICommonActionExtensionSite anActionSite) { 36 site = anActionSite; 37 editGroup = new EditActionGroup(site.getViewSite().getShell()); 38 39 } 40 41 public void dispose() { 42 editGroup.dispose(); 43 } 44 45 public void fillActionBars(IActionBars actionBars) { 46 editGroup.fillActionBars(actionBars); 47 } 48 49 public void fillContextMenu(IMenuManager menu) { 50 editGroup.fillContextMenu(menu); 51 } 52 53 public void setContext(ActionContext context) { 54 editGroup.setContext(context); 55 } 56 57 public void updateActionBars() { 58 editGroup.updateActionBars(); 59 } 60 } 61 | Popular Tags |