blob: c982c8c4f660a101901eb5acde2c4b55c0c482f7 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2013 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:
* Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation
* Asma Smaoui (CEA LIST) asma.smaoui@cea.fr - Migrartion from Neon to Oxygen
*****************************************************************************/
package org.eclipse.papyrus.robotml.diagram.ui;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.papyrus.uml.diagram.wizards.wizards.CreateModelWizard;
import org.eclipse.ui.IWorkbench;
public class NewRobotmlModelWizard extends CreateModelWizard {
public static final String ROBOTML_CONTEXT_ID = "org.eclipse.papyrus.robotml.context"; //$NON-NLS-1$
public static final String ROBOTML_VIEWPOINT_ID = "org.eclipse.papyrus.robotml.viewpoint"; //$NON-NLS-1$
/**
* @see org.eclipse.papyrus.wizards.CreateModelWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
*
* @param workbench
* @param selection
*/
@Override
public void init(IWorkbench workbench, IStructuredSelection selection) {
super.init(workbench, selection);
setWindowTitle("New RobotML Model");
}
/**
* Instantiates a new new Proteus model wizard.
*/
public NewRobotmlModelWizard() {
super();
}
@Override
public String getModelKindName() {
// TODO Auto-generated method stub
return "RobotML Model";
}
/**
* Gets the selected context ids.
*
* @return the context ids
* @since 3.0
*/
@Override
protected String[] getSelectedContexts() {
return new String[] {ROBOTML_CONTEXT_ID};
}
@Override
protected String[] getSelectedViewpoints() {
return new String[] {ROBOTML_VIEWPOINT_ID};
}
/**
* {@inheritDoc}
*/
@Override
public boolean isPapyrusRootWizard() {
return false;
}
}