01: /**
02: *
03: */package gui.wizards;
04:
05: import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
06:
07: import core.RefactorInfo;
08: import core.RenameProcessorHolder;
09:
10: /** <p>The wizard that is shown to the user for entering the necessary
11: * information for type renaming.</p>
12: *
13: * <p>The wizard class is primarily needed for deciding which pages are
14: * shown to the user. The actual user interface creation goes on the
15: * pages.</p>
16: *
17: * @author sh
18: */
19: public class RenameTypeWizard extends RefactoringWizard {
20:
21: private final RefactorInfo info;
22:
23: public RenameTypeWizard(final RenameProcessorHolder refactoring,
24: final RefactorInfo info) {
25: super (refactoring, DIALOG_BASED_USER_INTERFACE);
26: this .info = info;
27: }
28:
29: /**
30: * interface methods of RefactoringWizard
31: */
32: protected void addUserInputPages() {
33: setDefaultPageTitle(getRefactoring().getName());
34: addPage(new RenameTypeInputPage(info));
35: }
36: }
|