unified title and description handling in wizards
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ltk / ui / wizards / RenamePropertyWizard.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.RenamePropertyInfo;
6 import net.sourceforge.phpdt.ltk.core.RenamePropertyRefactoring;
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   * @author Leif Frenzel
20   */
21 public class RenamePropertyWizard extends RefactoringWizard {
22
23   private final RenamePropertyInfo info;
24
25
26   public RenamePropertyWizard( final RenamePropertyRefactoring refactoring,
27                                final RenamePropertyInfo info ) {
28     super( refactoring, DIALOG_BASED_USER_INTERFACE );
29     this.info = info;
30   }
31
32
33   // interface methods of RefactoringWizard
34   /////////////////////////////////////////
35
36   protected void addUserInputPages() {
37     setDefaultPageTitle( getRefactoring().getName() );
38     addPage( new RenamePropertyInputPage( info ) );
39   }
40 }