01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 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.jdt.internal.corext.refactoring.code.IntroduceFactoryRefactoring;
13: import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
14:
15: /**
16: * @author rfuhrer@watson.ibm.com
17: */
18: public class IntroduceFactoryWizard extends RefactoringWizard {
19: /**
20: * Constructor for IntroduceFactoryWizard.
21: * @param ref the refactoring
22: * @param pageTitle the page title
23: */
24: public IntroduceFactoryWizard(IntroduceFactoryRefactoring ref,
25: String pageTitle) {
26: super (ref, DIALOG_BASED_USER_INTERFACE
27: | PREVIEW_EXPAND_FIRST_NODE);
28: setDefaultPageTitle(pageTitle);
29: }
30:
31: /**
32: * @see RefactoringWizard#addUserInputPages
33: */
34: protected void addUserInputPages() {
35: String message = RefactoringMessages.IntroduceFactoryInputPage_name_factory;
36:
37: IntroduceFactoryInputPage page = new IntroduceFactoryInputPage(
38: message);
39:
40: addPage(page);
41: }
42:
43: public IntroduceFactoryRefactoring getIntroduceFactoryRefactoring() {
44: return (IntroduceFactoryRefactoring) getRefactoring();
45: }
46: }
|