SynchronizePropertiesWizard.java :  » IDE-Eclipse » Eclipse-plug-in-development » org » eclipse » pde » internal » ui » editor » site » Java Open Source

Java Open Source » IDE Eclipse » Eclipse plug in development 
Eclipse plug in development » org » eclipse » pde » internal » ui » editor » site » SynchronizePropertiesWizard.java
/*******************************************************************************
 * Copyright (c) 2000, 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Bartosz Michalik <bartosz.michalik@gmail.com> - bug 181878
 *******************************************************************************/
package org.eclipse.pde.internal.ui.editor.site;

import org.eclipse.jface.wizard.Wizard;
import org.eclipse.pde.internal.core.isite.ISiteFeature;
import org.eclipse.pde.internal.core.isite.ISiteModel;
import org.eclipse.pde.internal.ui.PDEPlugin;
import org.eclipse.pde.internal.ui.PDEPluginImages;
import org.eclipse.pde.internal.ui.PDEUIMessages;

public class SynchronizePropertiesWizard extends Wizard {
  private SynchronizePropertiesWizardPage fMainPage;

  private ISiteModel fModel;

  private ISiteFeature[] fSiteFeatures;

  public SynchronizePropertiesWizard(ISiteFeature[] siteFeatures,
      ISiteModel model) {
    super();
    setDefaultPageImageDescriptor(PDEPluginImages.DESC_NEWFTRPRJ_WIZ);
    setDialogSettings(PDEPlugin.getDefault().getDialogSettings());
    setNeedsProgressMonitor(true);
    setWindowTitle(PDEUIMessages.SynchronizePropertiesWizard_wtitle);
    fSiteFeatures = siteFeatures;
    fModel = model;
  }

  public void addPages() {
    fMainPage = new SynchronizePropertiesWizardPage(fSiteFeatures, fModel);
    addPage(fMainPage);
  }

  public boolean performFinish() {
    return fMainPage.finish();
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.