1 11 package org.eclipse.help.ui.internal.views; 12 13 import org.eclipse.help.ui.internal.HelpUIResources; 14 import org.eclipse.help.ui.internal.IHelpUIConstants; 15 import org.eclipse.help.ui.internal.Messages; 16 import org.eclipse.jface.wizard.Wizard; 17 18 public class NewEngineWizard extends Wizard { 19 private EngineTypeDescriptor[] engineTypes; 20 21 private EngineTypeWizardPage selectionPage; 22 23 public NewEngineWizard(EngineTypeDescriptor[] engineTypes) { 24 setWindowTitle(Messages.NewEngineWizard_wtitle); 25 setDefaultPageImageDescriptor(HelpUIResources 26 .getImageDescriptor(IHelpUIConstants.IMAGE_SEARCH_WIZ)); 27 this.engineTypes = engineTypes; 28 } 29 30 public void addPages() { 31 selectionPage = new EngineTypeWizardPage(engineTypes); 32 addPage(selectionPage); 33 } 34 35 public boolean performFinish() { 36 return true; 37 } 38 39 public EngineTypeDescriptor getSelectedEngineType() { 40 return selectionPage.getSelectedEngineType(); 41 } 42 } | Popular Tags |