KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > wizards > tools > ConvertedProjectWizard


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.ui.wizards.tools;
12
13 import java.util.Vector JavaDoc;
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 JavaDoc selected;
24     private IProject[] fUnconverted;
25     public ConvertedProjectWizard(IProject[] projects, Vector JavaDoc 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