01: /*******************************************************************************
02: * Copyright (c) 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.ui.examples.views.properties.tabbed.logic;
11:
12: import org.eclipse.jface.viewers.IStructuredSelection;
13: import org.eclipse.jface.wizard.Wizard;
14: import org.eclipse.ui.INewWizard;
15: import org.eclipse.ui.IWorkbench;
16:
17: public class LogicCreationWizard extends Wizard implements INewWizard {
18:
19: private LogicWizardPage1 logicPage = null;
20:
21: private IStructuredSelection selection;
22:
23: private IWorkbench workbench;
24:
25: public void addPages() {
26: logicPage = new LogicWizardPage1(workbench, selection);
27: addPage(logicPage);
28: }
29:
30: public void init(IWorkbench aWorkbench,
31: IStructuredSelection currentSelection) {
32: workbench = aWorkbench;
33: selection = currentSelection;
34: }
35:
36: public boolean performFinish() {
37: return logicPage.finish();
38: }
39:
40: }
|