01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.wizards.feature;
11:
12: import org.eclipse.jface.operation.IRunnableWithProgress;
13: import org.eclipse.pde.internal.ui.PDEPluginImages;
14: import org.eclipse.pde.internal.ui.PDEUIMessages;
15:
16: public class NewFeaturePatchWizard extends AbstractNewFeatureWizard {
17:
18: public NewFeaturePatchWizard() {
19: super ();
20: setDefaultPageImageDescriptor(PDEPluginImages.DESC_NEWFTRPTCH_WIZ);
21: setWindowTitle(PDEUIMessages.FeaturePatch_wtitle);
22: }
23:
24: protected AbstractFeatureSpecPage createFirstPage() {
25: return new PatchSpecPage();
26: }
27:
28: protected IRunnableWithProgress getOperation() {
29: return new CreateFeaturePatchOperation(fProvider.getProject(),
30: fProvider.getLocationPath(),
31: fProvider.getFeatureData(), fProvider
32: .getFeatureToPatch(), getShell());
33: }
34:
35: }
|