/* * Copyright (c) 2006, 2008 Borland Software Corp. * * 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: * Alexander Shatalin (Borland) - initial API and implementation */ package org.eclipse.gmf.ecore.edit.policies; import org.eclipse.gef.commands.Command; import org.eclipse.gmf.ecore.edit.commands.EAnnotation2CreateCommand; import org.eclipse.gmf.ecore.providers.EcoreElementTypes; import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; /** * @generated */ public class EDataTypeDataTypeAnnotationsItemSemanticEditPolicy extends EcoreBaseItemSemanticEditPolicy { /** * @generated */ public EDataTypeDataTypeAnnotationsItemSemanticEditPolicy() { super(EcoreElementTypes.EDataType_2004); } /** * @generated */ protected Command getCreateCommand(CreateElementRequest req) { if (EcoreElementTypes.EAnnotation_3003 == req.getElementType()) { return getGEFWrapper(new EAnnotation2CreateCommand(req)); } return super.getCreateCommand(req); } }