01: /*******************************************************************************
02: * Copyright (c) 2005, 2007 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.tools;
11:
12: import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
13: import org.eclipse.pde.internal.ui.PDEPlugin;
14: import org.eclipse.pde.internal.ui.PDEPluginImages;
15: import org.eclipse.pde.internal.ui.PDEUIMessages;
16: import org.eclipse.pde.internal.ui.refactoring.PDERefactor;
17:
18: public class OrganizeManifestsWizard extends RefactoringWizard {
19:
20: private OrganizeManifestsWizardPage fMainPage;
21:
22: public OrganizeManifestsWizard(PDERefactor refactoring) {
23: super (refactoring, WIZARD_BASED_USER_INTERFACE);
24: setNeedsProgressMonitor(true);
25: setWindowTitle(PDEUIMessages.OrganizeManifestsWizard_title);
26: setDialogSettings(PDEPlugin.getDefault().getDialogSettings());
27: setDefaultPageImageDescriptor(PDEPluginImages.DESC_ORGANIZE_MANIFESTS);
28: }
29:
30: public boolean performFinish() {
31: fMainPage.preformOk();
32: return super .performFinish();
33: }
34:
35: protected void addUserInputPages() {
36: setDefaultPageTitle(getRefactoring().getName());
37: fMainPage = new OrganizeManifestsWizardPage();
38: addPage(fMainPage);
39: }
40: }
|