KickJava   Java API By Example, From Geeks To Geeks.

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


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.ui.refactoring;
12
13 import org.eclipse.jdt.internal.corext.refactoring.code.IntroduceFactoryRefactoring;
14 import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
15
16 /**
17  * @author rfuhrer@watson.ibm.com
18  */

19 public class IntroduceFactoryWizard extends RefactoringWizard {
20     /**
21      * Constructor for IntroduceFactoryWizard.
22      * @param ref the refactoring
23      * @param pageTitle the page title
24      */

25     public IntroduceFactoryWizard(IntroduceFactoryRefactoring ref, String JavaDoc pageTitle) {
26         super(ref, DIALOG_BASED_USER_INTERFACE | PREVIEW_EXPAND_FIRST_NODE);
27         setDefaultPageTitle(pageTitle);
28     }
29
30     /**
31      * @see RefactoringWizard#addUserInputPages
32      */

33     protected void addUserInputPages() {
34         String JavaDoc message= RefactoringMessages.IntroduceFactoryInputPage_name_factory;
35
36         IntroduceFactoryInputPage page= new IntroduceFactoryInputPage(message);
37
38         addPage(page);
39     }
40
41     public IntroduceFactoryRefactoring getIntroduceFactoryRefactoring() {
42         return (IntroduceFactoryRefactoring) getRefactoring();
43     }
44 }
45
Popular Tags