blob: 990bbadbb45081060c7dae5beef6f6e12c7971ae [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2005 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.gmf.examples.runtime.diagram.logic.internal.wizards;
import org.eclipse.gmf.examples.runtime.diagram.logic.internal.l10n.ExampleDiagramLogicMessages;
import org.eclipse.gmf.examples.runtime.diagram.logic.internal.l10n.ExampleDiagramLogicPluginImages;
import org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.wizards.EditorCreationWizard;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbench;
/**
* @author qili
* @canBeSeenBy org.eclipse.gmf.examples.runtime.diagram.logic.*
*
* Create Logic Diagram Wizard
*/
public class LogicCreationWizard extends EditorCreationWizard{
/**
* @see org.eclipse.jface.wizard.IWizard#addPages()
*/
public void addPages() {
super.addPages();
if (page == null)
page = new LogicWizardPage(getWorkbench(), getSelection());
addPage(page);
}
public void init(IWorkbench workbench, IStructuredSelection sel) {
super.init(workbench, sel);
setWindowTitle(ExampleDiagramLogicMessages.CreationWizard_New_Logic_Diagram);
setDefaultPageImageDescriptor(ExampleDiagramLogicPluginImages.DESC_LOGIC_WIZARD);
setNeedsProgressMonitor(true);
}
}