blob: 0af716262522135f32cb57962d7ab9530d9f8eca [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2004 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.geoshapes.internal.wizards;
import org.eclipse.gmf.examples.runtime.diagram.geoshapes.internal.l10n.ExampleDiagramGeoshapeMessages;
import org.eclipse.gmf.examples.runtime.diagram.geoshapes.internal.l10n.ExampleDiagramGeoshapePluginImages;
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.geoshapes.*
*
* Create Diagram Wizard
*/
public class DiagramCreationWizard extends EditorCreationWizard{
/**
* @see org.eclipse.jface.wizard.IWizard#addPages()
*/
public void addPages() {
super.addPages();
if (page == null)
page = new DiagramWizardPage(getWorkbench(), getSelection());
addPage(page);
}
public void init(IWorkbench workbench, IStructuredSelection sel) {
super.init(workbench, sel);
setWindowTitle(ExampleDiagramGeoshapeMessages.
CreationWizard_New_Geoshape_Diagram);
setDefaultPageImageDescriptor(ExampleDiagramGeoshapePluginImages.DESC_GEOSHAPES_WIZARD);
setNeedsProgressMonitor(true);
}
}