1 11 package org.eclipse.pde.internal.ui.editor.site; 12 13 import org.eclipse.jface.action.Action; 14 import org.eclipse.jface.wizard.WizardDialog; 15 import org.eclipse.pde.internal.core.isite.ISiteFeature; 16 import org.eclipse.pde.internal.core.isite.ISiteModel; 17 import org.eclipse.pde.internal.ui.PDEPlugin; 18 import org.eclipse.pde.internal.ui.PDEUIMessages; 19 20 public class SynchronizePropertiesAction extends Action { 21 private ISiteModel fModel; 22 23 private ISiteFeature fSiteFeature; 24 25 public SynchronizePropertiesAction(ISiteFeature siteFeature, 26 ISiteModel model) { 27 setText(PDEUIMessages.SynchronizePropertiesAction_label); 28 fSiteFeature = siteFeature; 29 fModel = model; 30 } 31 32 public void run() { 33 SynchronizePropertiesWizard wizard = new SynchronizePropertiesWizard( 34 fSiteFeature, fModel); 35 WizardDialog dialog = new WizardDialog(PDEPlugin 36 .getActiveWorkbenchShell(), wizard); 37 dialog.open(); 38 } 39 } 40 | Popular Tags |