| /******************************************************************************* |
| * Copyright (c) 2006 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| ******************************************************************************/ |
| |
| package org.eclipse.ui.internal.navigator.resources.actions; |
| |
| import org.eclipse.jface.action.IMenuManager; |
| import org.eclipse.ui.IActionBars; |
| import org.eclipse.ui.actions.ActionContext; |
| import org.eclipse.ui.navigator.CommonActionProvider; |
| import org.eclipse.ui.navigator.ICommonActionExtensionSite; |
| |
| /** |
| * @since 3.2 |
| * |
| */ |
| public class EditActionProvider extends CommonActionProvider { |
| |
| private EditActionGroup editGroup; |
| |
| private ICommonActionExtensionSite site; |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.ui.navigator.CommonActionProvider#init(org.eclipse.ui.navigator.ICommonActionExtensionSite) |
| */ |
| public void init(ICommonActionExtensionSite anActionSite) { |
| site = anActionSite; |
| editGroup = new EditActionGroup(site.getViewSite().getShell()); |
| |
| } |
| |
| public void dispose() { |
| editGroup.dispose(); |
| } |
| |
| public void fillActionBars(IActionBars actionBars) { |
| editGroup.fillActionBars(actionBars); |
| } |
| |
| public void fillContextMenu(IMenuManager menu) { |
| editGroup.fillContextMenu(menu); |
| } |
| |
| public void setContext(ActionContext context) { |
| editGroup.setContext(context); |
| } |
| |
| public void updateActionBars() { |
| editGroup.updateActionBars(); |
| } |
| } |