ca8bb6825b6a761d753618b493454e89b5988c7e
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpdt / ltk / ui / wizards / RenameIdentifierWizard.java
1 // Copyright (c) 2005 by Leif Frenzel. All rights reserved.
2 // See http://leiffrenzel.de
3 package net.sourceforge.phpdt.ltk.ui.wizards;
4
5 import net.sourceforge.phpdt.ltk.core.RenameIdentifierInfo;
6 import net.sourceforge.phpdt.ltk.core.RenameIdentifierRefactoring;
7
8 import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
9
10 /**
11  * <p>
12  * The wizard that is shown to the user for entering the necessary information
13  * for property renaming.
14  * </p>
15  * 
16  * <p>
17  * The wizard class is primarily needed for deciding which pages are shown to
18  * the user. The actual user interface creation goes on the pages.
19  * </p>
20  * 
21  */
22 public class RenameIdentifierWizard extends RefactoringWizard {
23
24         private final RenameIdentifierInfo info;
25
26         public RenameIdentifierWizard(
27                         final RenameIdentifierRefactoring refactoring,
28                         final RenameIdentifierInfo info) {
29                 super(refactoring, DIALOG_BASED_USER_INTERFACE);
30                 this.info = info;
31         }
32
33         // interface methods of RefactoringWizard
34         // ///////////////////////////////////////
35
36         protected void addUserInputPages() {
37                 setDefaultPageTitle(getRefactoring().getName());
38                 addPage(new RenameLocalVariablePage(info));
39         }
40 }