Basic Reafctoring functionality adapted from Leif Frenzels sources in eclipse-magazin...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ltk / ui / wizards / RenamePropertyWizard.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/wizards/RenamePropertyWizard.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/ui/wizards/RenamePropertyWizard.java
new file mode 100644 (file)
index 0000000..4c5084c
--- /dev/null
@@ -0,0 +1,40 @@
+// Copyright (c) 2005 by Leif Frenzel. All rights reserved.
+// See http://leiffrenzel.de
+package net.sourceforge.phpdt.ltk.ui.wizards;
+
+import net.sourceforge.phpdt.ltk.core.RenamePropertyInfo;
+import net.sourceforge.phpdt.ltk.core.RenamePropertyRefactoring;
+
+import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
+
+
+
+/** <p>The wizard that is shown to the user for entering the necessary 
+  * information for property renaming.</p>
+  * 
+  * <p>The wizard class is primarily needed for deciding which pages are 
+  * shown to the user. The actual user interface creation goes on the 
+  * pages.</p>
+  * 
+  * @author Leif Frenzel
+  */
+public class RenamePropertyWizard extends RefactoringWizard {
+
+  private final RenamePropertyInfo info;
+
+
+  public RenamePropertyWizard( final RenamePropertyRefactoring refactoring,
+                               final RenamePropertyInfo info ) {
+    super( refactoring, DIALOG_BASED_USER_INTERFACE );
+    this.info = info;
+  }
+
+
+  // interface methods of RefactoringWizard
+  /////////////////////////////////////////
+
+  protected void addUserInputPages() {
+    setDefaultPageTitle( getRefactoring().getName() );
+    addPage( new RenamePropertyInputPage( info ) );
+  }
+}