1 11 package org.eclipse.jdt.internal.ui.refactoring; 12 13 import org.eclipse.jdt.internal.corext.refactoring.code.IntroduceFactoryRefactoring; 14 import org.eclipse.ltk.ui.refactoring.RefactoringWizard; 15 16 19 public class IntroduceFactoryWizard extends RefactoringWizard { 20 25 public IntroduceFactoryWizard(IntroduceFactoryRefactoring ref, String pageTitle) { 26 super(ref, DIALOG_BASED_USER_INTERFACE | PREVIEW_EXPAND_FIRST_NODE); 27 setDefaultPageTitle(pageTitle); 28 } 29 30 33 protected void addUserInputPages() { 34 String message= RefactoringMessages.IntroduceFactoryInputPage_name_factory; 35 36 IntroduceFactoryInputPage page= new IntroduceFactoryInputPage(message); 37 38 addPage(page); 39 } 40 41 public IntroduceFactoryRefactoring getIntroduceFactoryRefactoring() { 42 return (IntroduceFactoryRefactoring) getRefactoring(); 43 } 44 } 45 | Popular Tags |