KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ltk > core > refactoring > participants > RenameRefactoring


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ltk.core.refactoring.participants;
12
13 import org.eclipse.core.runtime.Assert;
14
15 /**
16  * A generic rename refactoring. The actual refactoring is done
17  * by the rename processor passed to the constructor.
18  * <p>
19  * This class is not intended to be subclassed by clients.
20  * </p>
21  *
22  * @since 3.0
23  */

24 public class RenameRefactoring extends ProcessorBasedRefactoring {
25
26     private RenameProcessor fProcessor;
27     
28     /**
29      * Creates a new rename refactoring with the given rename processor.
30      *
31      * @param processor the rename processor
32      */

33     public RenameRefactoring(RenameProcessor processor) {
34         super(processor);
35         Assert.isNotNull(processor);
36         fProcessor= processor;
37     }
38     
39     /**
40      * {@inheritDoc}
41      */

42     public RefactoringProcessor getProcessor() {
43         return fProcessor;
44     }
45 }
46
Popular Tags