/*****************************************************************************
* Copyright (c) 2008 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:
* Cedric Dumoulin Cedric.Dumoulin@lifl.fr - Initial API and implementation
* Obeo
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.clazz;
import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
import org.eclipse.papyrus.infra.gmfdiag.common.AbstractPapyrusGmfCreateDiagramCommandHandler;
import org.eclipse.papyrus.uml.diagram.clazz.edit.parts.ModelEditPart;
/**
* Define a command to create a new Class Diagram. This command is used by all UI (toolbar, outline,
* creation wizards) to create a new Class Diagram.
*
* @author dumoulin
* @author <a href="mailto:jerome.benois@obeo.fr">Jerome Benois</a>
*/
public class CreateClassDiagramCommand extends AbstractPapyrusGmfCreateDiagramCommandHandler {
@Override
protected String getDefaultDiagramName() {
return "ClassDiagram";
}
/**
* {@inheritDoc}
*/
@Override
protected String getDiagramNotationID() {
return ModelEditPart.MODEL_ID;
}
/**
* {@inheritDoc}
*/
@Override
protected PreferencesHint getPreferenceHint() {
return org.eclipse.papyrus.uml.diagram.clazz.part.UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT;
}
}