1 11 package org.eclipse.pde.internal.ui.editor.feature; 12 13 import org.eclipse.jface.wizard.*; 14 import org.eclipse.pde.internal.core.ifeature.*; 15 import org.eclipse.pde.internal.ui.*; 16 17 public class IncludeFeaturesWizard extends Wizard { 18 private IFeatureModel model; 19 private IncludeFeaturesWizardPage mainPage; 20 21 public IncludeFeaturesWizard(IFeatureModel model) { 22 this.model = model; 23 setDefaultPageImageDescriptor(PDEPluginImages.DESC_NEWPPRJ_WIZ); 24 setDialogSettings(PDEPlugin.getDefault().getDialogSettings()); 25 setNeedsProgressMonitor(true); 26 } 27 28 public void addPages() { 29 mainPage = new IncludeFeaturesWizardPage(model); 30 addPage(mainPage); 31 setWindowTitle(mainPage.getTitle()); 32 } 33 34 public boolean performFinish() { 35 return mainPage.finish(); 36 } 37 38 } 39 | Popular Tags |