1 11 package org.eclipse.jdt.internal.ui.refactoring; 12 13 import org.eclipse.core.runtime.CoreException; 14 15 import org.eclipse.swt.widgets.Shell; 16 17 import org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter; 18 19 import org.eclipse.ltk.core.refactoring.Refactoring; 20 import org.eclipse.ltk.ui.refactoring.RefactoringWizard; 21 22 25 public class UserInterfaceStarter { 26 27 private RefactoringWizard fWizard; 28 29 35 public void initialize(RefactoringWizard wizard) { 36 fWizard= wizard; 37 } 38 39 56 public boolean activate(Refactoring refactoring, Shell parent, int saveMode) throws CoreException { 57 String title= fWizard.getDefaultPageTitle(); 58 if (title == null) 59 title= ""; return new RefactoringStarter().activate(refactoring, fWizard, parent, title, saveMode); 61 } 62 } 63 | Popular Tags |