KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > help > ui > internal > views > NewEngineWizard


1 /*******************************************************************************
2  * Copyright (c) 2004, 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.help.ui.internal.views;
12
13 import org.eclipse.help.ui.internal.HelpUIResources;
14 import org.eclipse.help.ui.internal.IHelpUIConstants;
15 import org.eclipse.help.ui.internal.Messages;
16 import org.eclipse.jface.wizard.Wizard;
17
18 public class NewEngineWizard extends Wizard {
19     private EngineTypeDescriptor[] engineTypes;
20
21     private EngineTypeWizardPage selectionPage;
22
23     public NewEngineWizard(EngineTypeDescriptor[] engineTypes) {
24         setWindowTitle(Messages.NewEngineWizard_wtitle);
25         setDefaultPageImageDescriptor(HelpUIResources
26                 .getImageDescriptor(IHelpUIConstants.IMAGE_SEARCH_WIZ));
27         this.engineTypes = engineTypes;
28     }
29
30     public void addPages() {
31         selectionPage = new EngineTypeWizardPage(engineTypes);
32         addPage(selectionPage);
33     }
34
35     public boolean performFinish() {
36         return true;
37     }
38
39     public EngineTypeDescriptor getSelectedEngineType() {
40         return selectionPage.getSelectedEngineType();
41     }
42 }
Popular Tags