KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > refactoring > ExtractSupertypeWizard


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.ui.refactoring;
12
13 import org.eclipse.ltk.core.refactoring.Refactoring;
14 import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
15
16 import org.eclipse.jdt.internal.ui.JavaPluginImages;
17
18 /**
19  * Refactoring wizard for the extract supertype refactoring.
20  *
21  * @since 3.2
22  */

23 public final class ExtractSupertypeWizard extends RefactoringWizard {
24
25     /** The page name */
26     private static final String JavaDoc PAGE_NAME= "ExtractSupertypeMemberPage"; //$NON-NLS-1$
27

28     /**
29      * Creates a new extract supertype wizard.
30      *
31      * @param refactoring
32      * the refactoring
33      */

34     public ExtractSupertypeWizard(final Refactoring refactoring) {
35         super(refactoring, WIZARD_BASED_USER_INTERFACE);
36         setDefaultPageTitle(RefactoringMessages.ExtractSupertypeWizard_defaultPageTitle);
37         setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_REFACTOR_EXTRACT_SUPERTYPE);
38     }
39
40     /**
41      * {@inheritDoc}
42      */

43     protected void addUserInputPages() {
44         final ExtractSupertypeMethodPage page= new ExtractSupertypeMethodPage();
45         addPage(new ExtractSupertypeMemberPage(PAGE_NAME, page));
46         addPage(page);
47     }
48 }
Popular Tags