]>
Commit | Line | Data |
---|---|---|
1b2798f6 EK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2000, 2011 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.code.IntroduceIndirectionRefactoring; | |
16 | ||
17 | /** | |
18 | * @since 3.2 | |
19 | */ | |
20 | public class IntroduceIndirectionWizard extends RefactoringWizard { | |
21 | ||
22 | /** | |
23 | * Constructor for IntroduceIndirectionWizard. | |
24 | * @param ref the refactoring | |
25 | * @param pageTitle the page title | |
26 | */ | |
27 | public IntroduceIndirectionWizard(IntroduceIndirectionRefactoring ref, String pageTitle) { | |
28 | super(ref, DIALOG_BASED_USER_INTERFACE | PREVIEW_EXPAND_FIRST_NODE); | |
29 | setDefaultPageTitle(pageTitle); | |
30 | } | |
31 | ||
32 | /** | |
33 | * @see RefactoringWizard#addUserInputPages | |
34 | */ | |
35 | @Override | |
36 | protected void addUserInputPages() { | |
37 | IntroduceIndirectionInputPage page= new IntroduceIndirectionInputPage("IntroduceIndirectionInputPage"); //$NON-NLS-1$ | |
38 | addPage(page); | |
39 | } | |
40 | ||
41 | public IntroduceIndirectionRefactoring getIntroduceIndirectionRefactoring() { | |
42 | return (IntroduceIndirectionRefactoring) getRefactoring(); | |
43 | } | |
44 | } |