blob: 2662ffea2ad7d91738fa10ee43c3ed5b6309c077 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006, 2008 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
* Oakland Software (Francis Upton - francisu@ieee.org)
* bug 214271 Undo/redo not enabled if nothing selected
******************************************************************************/
package org.eclipse.ui.internal.navigator.resources.actions;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.swt.widgets.Tree;
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 RefactorActionProvider extends CommonActionProvider {
private RefactorActionGroup refactorGroup;
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.navigator.CommonActionProvider#init(org.eclipse.ui.navigator.ICommonActionExtensionSite)
*/
public void init(ICommonActionExtensionSite anActionSite) {
refactorGroup = new RefactorActionGroup(anActionSite.getViewSite().getShell(), (Tree)anActionSite.getStructuredViewer().getControl());
}
public void dispose() {
refactorGroup.dispose();
}
public void fillActionBars(IActionBars actionBars) {
refactorGroup.fillActionBars(actionBars);
}
public void fillContextMenu(IMenuManager menu) {
refactorGroup.fillContextMenu(menu);
}
public void setContext(ActionContext context) {
refactorGroup.setContext(context);
}
public void updateActionBars() {
refactorGroup.updateActionBars();
}
}