01: /*******************************************************************************
02: * Copyright (c) 2000, 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.ui.refactoring.RefactoringWizard;
13:
14: import org.eclipse.jdt.internal.corext.refactoring.code.IntroduceIndirectionRefactoring;
15:
16: /**
17: * @since 3.2
18: */
19: public class IntroduceIndirectionWizard extends RefactoringWizard {
20:
21: /**
22: * Constructor for IntroduceIndirectionWizard.
23: * @param ref the refactoring
24: * @param pageTitle the page title
25: */
26: public IntroduceIndirectionWizard(
27: IntroduceIndirectionRefactoring ref, String pageTitle) {
28: super (ref, DIALOG_BASED_USER_INTERFACE
29: | PREVIEW_EXPAND_FIRST_NODE);
30: setDefaultPageTitle(pageTitle);
31: }
32:
33: /**
34: * @see RefactoringWizard#addUserInputPages
35: */
36: protected void addUserInputPages() {
37: IntroduceIndirectionInputPage page = new IntroduceIndirectionInputPage(
38: "IntroduceIndirectionInputPage"); //$NON-NLS-1$
39: addPage(page);
40: }
41:
42: public IntroduceIndirectionRefactoring getIntroduceIndirectionRefactoring() {
43: return (IntroduceIndirectionRefactoring) getRefactoring();
44: }
45: }
|