KickJava   Java API By Example, From Geeks To Geeks.

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


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.editor.site;
12
13 import org.eclipse.jface.wizard.Wizard;
14 import org.eclipse.pde.internal.core.isite.ISiteFeature;
15 import org.eclipse.pde.internal.core.isite.ISiteModel;
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
20 public class SynchronizePropertiesWizard extends Wizard {
21     private SynchronizePropertiesWizardPage fMainPage;
22
23     private ISiteModel fModel;
24
25     private ISiteFeature fSiteFeature;
26
27     public SynchronizePropertiesWizard(ISiteFeature siteFeature,
28             ISiteModel model) {
29         super();
30         setDefaultPageImageDescriptor(PDEPluginImages.DESC_NEWFTRPRJ_WIZ);
31         setDialogSettings(PDEPlugin.getDefault().getDialogSettings());
32         setNeedsProgressMonitor(true);
33         setWindowTitle(PDEUIMessages.SynchronizePropertiesWizard_wtitle);
34         fSiteFeature = siteFeature;
35         fModel = model;
36     }
37
38     public void addPages() {
39         fMainPage = new SynchronizePropertiesWizardPage(fSiteFeature, fModel);
40         addPage(fMainPage);
41     }
42
43     public boolean performFinish() {
44         return fMainPage.finish();
45     }
46 }
47
Popular Tags