KickJava   Java API By Example, From Geeks To Geeks.

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


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.jdt.internal.ui.refactoring;
12
13 import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
14
15 import org.eclipse.jdt.internal.corext.refactoring.structure.PullUpRefactoring;
16
17 import org.eclipse.jdt.internal.ui.JavaPluginImages;
18
19 /**
20  * Refactoring wizard for the pull up refactoring.
21  */

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

27     /**
28      * Creates a new pull up wizard.
29      *
30      * @param refactoring
31      * the pull up refactoring
32      */

33     public PullUpWizard(final PullUpRefactoring refactoring) {
34         super(refactoring, WIZARD_BASED_USER_INTERFACE);
35         setDefaultPageTitle(RefactoringMessages.PullUpWizard_defaultPageTitle);
36         setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_REFACTOR_PULL_UP);
37     }
38
39     /**
40      * {@inheritDoc}
41      */

42     protected void addUserInputPages() {
43         final PullUpMethodPage page= new PullUpMethodPage();
44         addPage(new PullUpMemberPage(PullUpWizard.PAGE_NAME, page));
45         addPage(page);
46     }
47 }
48
Popular Tags