package brn.gui.fwdgraph.diagram.part;

import org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.wizards.EditorCreationWizard;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbench;

/**
 * @generated
 */
public class ModelCreationWizard extends EditorCreationWizard {

  /**
   * @generated
   */
  public void addPages() {
    super.addPages();
    if (page == null) {
      page = new ModelCreationWizardPage(getWorkbench(), getSelection());
    }
    addPage(page);
  }

  /**
   * @generated
   */
  public void init(IWorkbench workbench, IStructuredSelection selection) {
    super.init(workbench, selection);
    setWindowTitle("New Model Diagram"); //$NON-NLS-1$
    setDefaultPageImageDescriptor(FwdGraphDiagramEditorPlugin
        .getBundledImageDescriptor("icons/wizban/NewModelWizard.gif")); //$NON-NLS-1$
    setNeedsProgressMonitor(true);
  }
}
