/*******************************************************************************
* Copyright (c) 2008, 2009 Institute for Software, HSR Hochschule fuer Technik
* Rapperswil, University of applied sciences 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:
* Institute for Software - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.internal.ui.refactoring;
import org.eclipse.core.resources.IFile;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.window.IShellProvider;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.ICProject;
/**
* Base class for all refactoring runners.
*
* @deprecated Use RefactoringRunner2.
*
* @author Emanuel Graf
*/
@Deprecated
public abstract class RefactoringRunner {
protected IFile file;
protected ISelection selection;
protected ICElement celement;
protected IShellProvider shellProvider;
protected ICProject project;
public RefactoringRunner(IFile file, ISelection selection, ICElement element,
IShellProvider shellProvider, ICProject cProject) {
this.file = file;
this.selection = selection;
this.celement= element;
this.shellProvider= shellProvider;
this.project = cProject;
}
public abstract void run();
}