KickJava   Java API By Example, From Geeks To Geeks.

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


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 move refactoring. The actual refactoring is done
17  * by the move 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 MoveRefactoring extends ProcessorBasedRefactoring {
25
26     private MoveProcessor fProcessor;
27
28     /**
29      * Creates a new move refactoring with the given move processor.
30      *
31      * @param processor the move processor
32      */

33     public MoveRefactoring(MoveProcessor processor) {
34         super(processor);
35         Assert.isNotNull(processor);
36         fProcessor= processor;
37     }
38     
39     /**
40      * Returns the move processor associated with this move refactoring.
41      *
42      * @return returns the move processor associated with this move refactoring
43      */

44     public MoveProcessor getMoveProcessor() {
45         return fProcessor;
46     }
47
48     /**
49      * {@inheritDoc}
50      */

51     public RefactoringProcessor getProcessor() {
52         return fProcessor;
53     }
54 }
55
Popular Tags