blob: 02a9978ab0f2067ad2a237a68ec17a0a86b1590a [file] [log] [blame]
/*******************************************************************************
* 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.action.Action;
import org.eclipse.jface.wizard.WizardDialog;
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.PDEUIMessages;
public class SynchronizePropertiesAction extends Action {
private ISiteModel fModel;
private ISiteFeature[] fSiteFeatures;
public SynchronizePropertiesAction(ISiteFeature[] siteFeatures, ISiteModel model) {
setText(PDEUIMessages.SynchronizePropertiesAction_label);
fSiteFeatures = siteFeatures;
fModel = model;
}
public void run() {
SynchronizePropertiesWizard wizard = new SynchronizePropertiesWizard(fSiteFeatures, fModel);
WizardDialog dialog = new WizardDialog(PDEPlugin.getActiveWorkbenchShell(), wizard);
dialog.open();
}
}