01: /*******************************************************************************
02: * Copyright (c) 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.ui.refactoring;
11:
12: import org.eclipse.ltk.core.refactoring.Refactoring;
13: import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
14:
15: import org.eclipse.jdt.internal.ui.JavaPluginImages;
16:
17: /**
18: * Refactoring wizard for the extract supertype refactoring.
19: *
20: * @since 3.2
21: */
22: public final class ExtractSupertypeWizard extends RefactoringWizard {
23:
24: /** The page name */
25: private static final String PAGE_NAME = "ExtractSupertypeMemberPage"; //$NON-NLS-1$
26:
27: /**
28: * Creates a new extract supertype wizard.
29: *
30: * @param refactoring
31: * the refactoring
32: */
33: public ExtractSupertypeWizard(final Refactoring refactoring) {
34: super (refactoring, WIZARD_BASED_USER_INTERFACE);
35: setDefaultPageTitle(RefactoringMessages.ExtractSupertypeWizard_defaultPageTitle);
36: setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_REFACTOR_EXTRACT_SUPERTYPE);
37: }
38:
39: /**
40: * {@inheritDoc}
41: */
42: protected void addUserInputPages() {
43: final ExtractSupertypeMethodPage page = new ExtractSupertypeMethodPage();
44: addPage(new ExtractSupertypeMemberPage(PAGE_NAME, page));
45: addPage(page);
46: }
47: }
|