KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > editor > site > BuiltFeaturesWizard


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

11 package org.eclipse.pde.internal.ui.editor.site;
12
13 import org.eclipse.jface.wizard.*;
14 import org.eclipse.pde.internal.core.isite.*;
15 import org.eclipse.pde.internal.ui.*;
16
17 public class BuiltFeaturesWizard extends Wizard {
18     private ISiteBuildModel model;
19     private BuiltFeaturesWizardPage mainPage;
20
21 public BuiltFeaturesWizard(ISiteBuildModel model) {
22     this.model = model;
23     setDefaultPageImageDescriptor(PDEPluginImages.DESC_NEWPPRJ_WIZ);
24     setDialogSettings(PDEPlugin.getDefault().getDialogSettings());
25     setNeedsProgressMonitor(true);
26     setWindowTitle(PDEPlugin.getResourceString("BuiltFeaturesWizard.title")); //$NON-NLS-1$
27
}
28
29 public void addPages() {
30     mainPage = new BuiltFeaturesWizardPage(model);
31     addPage(mainPage);
32 }
33
34 public boolean performFinish() {
35     return mainPage.finish();
36 }
37
38 }
39
Popular Tags