Added patch from #1437426: error in assign template
[phpeclipse.git] / net.sourceforge.phpeclipse / 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
12 /** <p>The wizard that is shown to the user for entering the necessary
13   * information for property renaming.</p>
14   *
15   * <p>The wizard class is primarily needed for deciding which pages are
16   * shown to the user. The actual user interface creation goes on the
17   * pages.</p>
18   *
19   */
20 public class RenameIdentifierWizard extends RefactoringWizard {
21
22   private final RenameIdentifierInfo info;
23
24
25   public RenameIdentifierWizard( final RenameIdentifierRefactoring refactoring,
26                                final RenameIdentifierInfo info ) {
27     super( refactoring, DIALOG_BASED_USER_INTERFACE );
28     this.info = info;
29   }
30
31
32   // interface methods of RefactoringWizard
33   /////////////////////////////////////////
34
35   protected void addUserInputPages() {
36     setDefaultPageTitle( getRefactoring().getName() );
37     addPage( new RenameLocalVariablePage( info ) );
38   }
39 }