KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > corext > refactoring > structure > MoveInstanceMethodRefactoring


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.jdt.internal.corext.refactoring.structure;
12
13 import org.eclipse.jdt.internal.corext.refactoring.RefactoringCoreMessages;
14
15 /**
16  * Refactoring to move an instance method to another class.
17  */

18 public final class MoveInstanceMethodRefactoring extends JavaMoveRefactoring {
19
20     /**
21      * Creates a new move instance method refactoring.
22      *
23      * @param processor
24      * the move instance method processor to use
25      */

26     public MoveInstanceMethodRefactoring(final MoveInstanceMethodProcessor processor) {
27         super(processor);
28     }
29
30     /**
31      * Returns the move instance method processor
32      *
33      * @return the move processor
34      */

35     public final MoveInstanceMethodProcessor getMoveMethodProcessor() {
36         return (MoveInstanceMethodProcessor) getMoveProcessor();
37     }
38
39     /**
40      * {@inheritDoc}
41      */

42     public final String JavaDoc getName() {
43         return RefactoringCoreMessages.MoveInstanceMethodRefactoring_name;
44     }
45 }
Popular Tags