KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > ui > wizards > ReplaceFeatureVersionWizard


1 /*******************************************************************************
2  * Copyright (c) 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.update.internal.ui.wizards;
12
13 import org.eclipse.jface.wizard.Wizard;
14 import org.eclipse.update.core.IFeature;
15 import org.eclipse.update.internal.ui.UpdateUIImages;
16 import org.eclipse.update.internal.ui.UpdateUIMessages;
17
18
19 public class ReplaceFeatureVersionWizard extends Wizard {
20     private ReplaceFeatureVersionWizardPage page;
21
22     public ReplaceFeatureVersionWizard(IFeature currentFeature, IFeature[] features) {
23         setWindowTitle(UpdateUIMessages.SwapFeatureWizard_title);
24         setDefaultPageImageDescriptor(UpdateUIImages.DESC_UPDATE_WIZ);
25         page = new ReplaceFeatureVersionWizardPage(currentFeature, features);
26     }
27
28     public void addPages() {
29         addPage(page);
30     }
31     
32     public boolean performFinish() {
33         return page.performFinish();
34     }
35
36 }
37
Popular Tags