]> git.uio.no Git - ifi-stolz-refaktor.git/blame - case-study/jdt-before/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceIndirectionWizard.java
Case Study: adding data and statistics
[ifi-stolz-refaktor.git] / case-study / jdt-before / ui refactoring / org / eclipse / jdt / internal / ui / refactoring / IntroduceIndirectionWizard.java
CommitLineData
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 *******************************************************************************/
11package org.eclipse.jdt.internal.ui.refactoring;
12
13import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
14
15import org.eclipse.jdt.internal.corext.refactoring.code.IntroduceIndirectionRefactoring;
16
17/**
18 * @since 3.2
19 */
20public 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}