| /******************************************************************************* |
| * Copyright (c) 2003 International Business Machines Corp. and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v0.5 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-v05.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| ******************************************************************************/ |
| package org.eclipse.ltk.core.refactoring.participants; |
| |
| import org.eclipse.ltk.internal.core.refactoring.Assert; |
| |
| /** |
| * A generic rename refactoring. The actual refactoring is done |
| * by the rename processor passed to the constructor. |
| * <p> |
| * This class is not intended to be subclassed by clients. |
| * </p> |
| * |
| * @since 3.0 |
| */ |
| public class RenameRefactoring extends ProcessorBasedRefactoring { |
| |
| private RenameProcessor fProcessor; |
| |
| /** |
| * Creates a new rename refactoring with the given rename processor. |
| * |
| * @param processor the rename processor |
| */ |
| public RenameRefactoring(RenameProcessor processor) { |
| Assert.isNotNull(processor); |
| fProcessor= processor; |
| } |
| |
| /** |
| * {@inheritDoc} |
| */ |
| public RefactoringProcessor getProcessor() { |
| return fProcessor; |
| } |
| } |