01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.wizards.tools;
11:
12: import java.util.Vector;
13:
14: import org.eclipse.core.resources.IProject;
15: import org.eclipse.pde.internal.ui.PDEPlugin;
16: import org.eclipse.pde.internal.ui.PDEPluginImages;
17: import org.eclipse.pde.internal.ui.PDEUIMessages;
18: import org.eclipse.pde.internal.ui.wizards.NewWizard;
19:
20: public class ConvertedProjectWizard extends NewWizard {
21: private ConvertedProjectsPage mainPage;
22: private Vector selected;
23: private IProject[] fUnconverted;
24:
25: public ConvertedProjectWizard(IProject[] projects,
26: Vector initialSelection) {
27: setDefaultPageImageDescriptor(PDEPluginImages.DESC_CONVJPPRJ_WIZ);
28: setWindowTitle(PDEUIMessages.ConvertedProjectWizard_title);
29: setDialogSettings(PDEPlugin.getDefault().getDialogSettings());
30: setNeedsProgressMonitor(true);
31: this .selected = initialSelection;
32: this .fUnconverted = projects;
33: }
34:
35: public void addPages() {
36: mainPage = new ConvertedProjectsPage(fUnconverted, selected);
37: addPage(mainPage);
38: }
39:
40: public boolean performFinish() {
41: return mainPage.finish();
42: }
43: }
|