KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 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.jdt.internal.corext.refactoring.structure;
12
13 import org.eclipse.jdt.internal.corext.refactoring.RefactoringCoreMessages;
14
15 /**
16  * Refactoring to extract a supertype from a class.
17  *
18  * @since 3.2
19  */

20 public final class ExtractSupertypeRefactoring extends PullUpRefactoring {
21
22     /**
23      * Creates a new extract supertype refactoring.
24      *
25      * @param processor
26      * the extract supertype refactoring processor to use
27      */

28     public ExtractSupertypeRefactoring(final ExtractSupertypeProcessor processor) {
29         super(processor);
30     }
31
32     /**
33      * Returns the extract supertype processor.
34      *
35      * @return the extract supertype processor.
36      */

37     public ExtractSupertypeProcessor getExtractSupertypeProcessor() {
38         return (ExtractSupertypeProcessor) getProcessor();
39     }
40
41     /**
42      * {@inheritDoc}
43      */

44     public String JavaDoc getName() {
45         return RefactoringCoreMessages.ExtractSupertypeProcessor_extract_supertype;
46     }
47 }
Popular Tags