/*******************************************************************************
* Copyright (c) 2009 Obeo
* 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:
* Mariot Chauvin <mariot.chauvin@obeo.fr> - initial API and implementation
*******************************************************************************/
package org.eclipse.gef.examples.logicdesigner;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;
public class LogicMCreationWizard extends Wizard implements INewWizard {
private LogicMWizardPage1 logicPage = null;
private IStructuredSelection selection;
private IWorkbench workbench;
public void addPages(){
logicPage = new LogicMWizardPage1(workbench,selection);
addPage(logicPage);
}
public void init(IWorkbench aWorkbench,IStructuredSelection currentSelection) {
workbench = aWorkbench;
selection = currentSelection;
}
public boolean performFinish(){
return logicPage.finish();
}
}