Skip to main content
summaryrefslogtreecommitdiffstats
blob: c6b5a675a9ae655b7618ffaef6fa82cdd5319302 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*******************************************************************************
 * Copyright (c) 2004, 2016 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.help.ui.internal.views;

import org.eclipse.help.ui.internal.HelpUIResources;
import org.eclipse.help.ui.internal.IHelpUIConstants;
import org.eclipse.help.ui.internal.Messages;
import org.eclipse.jface.wizard.Wizard;

public class NewEngineWizard extends Wizard {
	private EngineTypeDescriptor[] engineTypes;

	private EngineTypeWizardPage selectionPage;

	public NewEngineWizard(EngineTypeDescriptor[] engineTypes) {
		setWindowTitle(Messages.NewEngineWizard_wtitle);
		setDefaultPageImageDescriptor(HelpUIResources
				.getImageDescriptor(IHelpUIConstants.IMAGE_SEARCH_WIZ));
		this.engineTypes = engineTypes;
	}

	@Override
	public void addPages() {
		selectionPage = new EngineTypeWizardPage(engineTypes);
		addPage(selectionPage);
	}

	@Override
	public boolean performFinish() {
		return true;
	}

	public EngineTypeDescriptor getSelectedEngineType() {
		return selectionPage.getSelectedEngineType();
	}
}

Back to the top