1 11 package org.eclipse.pde.internal.ui.wizards.tools; 12 13 import java.util.Vector ; 14 15 import org.eclipse.core.resources.IProject; 16 import org.eclipse.pde.internal.ui.PDEPlugin; 17 import org.eclipse.pde.internal.ui.PDEPluginImages; 18 import org.eclipse.pde.internal.ui.PDEUIMessages; 19 import org.eclipse.pde.internal.ui.wizards.NewWizard; 20 21 public class ConvertedProjectWizard extends NewWizard { 22 private ConvertedProjectsPage mainPage; 23 private Vector selected; 24 private IProject[] fUnconverted; 25 public ConvertedProjectWizard(IProject[] projects, Vector initialSelection) { 26 setDefaultPageImageDescriptor(PDEPluginImages.DESC_CONVJPPRJ_WIZ); 27 setWindowTitle(PDEUIMessages.ConvertedProjectWizard_title); 28 setDialogSettings(PDEPlugin.getDefault().getDialogSettings()); 29 setNeedsProgressMonitor(true); 30 this.selected = initialSelection; 31 this.fUnconverted = projects; 32 } 33 34 public void addPages() { 35 mainPage = new ConvertedProjectsPage(fUnconverted, selected); 36 addPage(mainPage); 37 } 38 public boolean performFinish() { 39 return mainPage.finish(); 40 } 41 } 42 | Popular Tags |