blob: 8e43248ef7146c2f87027da4631cd8ba46682cf6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 ALL4TEC & CEA LIST.
* 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:
* ALL4TEC & CEA LIST - initial API and implementation
******************************************************************************/
package org.polarsys.esf.core.wizard.ui.wizards;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramCategoryPage;
import org.eclipse.papyrus.uml.diagram.wizards.wizards.CreateModelWizard;
import org.eclipse.ui.IWorkbench;
import org.polarsys.esf.core.wizard.ui.commands.ESFModelCreationCommand;
/**
* Wizard dedicated to create a ESF model.
*
* @author $Author: ymunoz $
* @version $Revision: 168 $
*/
public class CreateESFModelWizard
extends CreateModelWizard {
/** Window Title used by ESF Wizard for creation of a new ESF Model. */
public static final String WINDOW_TITLE = "New ESF Model"; //$NON-NLS-1$
/** Model Name used by ESF Wizard for creation of a new ESF Model. */
public static final String MODEL_NAME = "ESF Model"; //$NON-NLS-1$
/**
* Instantiates a new new ESF model wizard.
*/
public CreateESFModelWizard() {
super();
}
/**
* {@inheritDoc}
*/
@Override
public void init(final IWorkbench pWorkbench, final IStructuredSelection pSelection) {
super.init(pWorkbench, pSelection);
setWindowTitle(WINDOW_TITLE);
}
/**
* {@inheritDoc}
*/
@Override
public String getModelKindName() {
return MODEL_NAME;
}
/**
* {@inheritDoc}
*/
@Override
protected String[] getDiagramCategoryIds() {
return new String[] {ESFModelCreationCommand.DIAGRAMCATEGORY_ID};
}
/**
* {@inheritDoc}
*/
@Override
protected SelectDiagramCategoryPage createSelectDiagramCategoryPage() {
return null;
}
/**
* {@inheritDoc}
*/
@Override
protected void saveDiagramCategorySettings() {
}
}