KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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 JavaDoc pageTitle) {
28         super(ref, DIALOG_BASED_USER_INTERFACE | PREVIEW_EXPAND_FIRST_NODE);
29         setDefaultPageTitle(pageTitle);
30     }
31
32     /**
33      * @see RefactoringWizard#addUserInputPages
34      */

35     protected void addUserInputPages() {
36         IntroduceIndirectionInputPage page= new IntroduceIndirectionInputPage("IntroduceIndirectionInputPage"); //$NON-NLS-1$
37
addPage(page);
38     }
39
40     public IntroduceIndirectionRefactoring getIntroduceIndirectionRefactoring() {
41         return (IntroduceIndirectionRefactoring) getRefactoring();
42     }
43 }
44
Popular Tags