| /******************************************************************************* |
| * Copyright (c) 2000, 2006 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 |
| *******************************************************************************/ |
| package org.eclipse.pde.internal.ui.wizards.feature; |
| |
| import org.eclipse.jface.operation.IRunnableWithProgress; |
| import org.eclipse.pde.internal.ui.PDEPluginImages; |
| import org.eclipse.pde.internal.ui.PDEUIMessages; |
| |
| public class NewFeaturePatchWizard extends AbstractNewFeatureWizard { |
| |
| public NewFeaturePatchWizard() { |
| super(); |
| setDefaultPageImageDescriptor(PDEPluginImages.DESC_NEWFTRPTCH_WIZ); |
| setWindowTitle(PDEUIMessages.FeaturePatch_wtitle); |
| } |
| |
| protected AbstractFeatureSpecPage createFirstPage() { |
| return new PatchSpecPage(); |
| } |
| |
| protected IRunnableWithProgress getOperation() { |
| return new CreateFeaturePatchOperation(fProvider.getProject(), fProvider.getLocationPath(), fProvider.getFeatureData(), fProvider.getFeatureToPatch(), getShell()); |
| } |
| |
| } |