/***************************************************************************** * Copyright (c) 2010 Atos Origin. * * * 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: * Emilien Perico (Atos Origin) emilien.perico@atosorigin.com - Initial API and implementation * *****************************************************************************/ package org.eclipse.papyrus.uml.diagram.usecase.edit.policies; import org.eclipse.gef.commands.Command; import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; import org.eclipse.papyrus.uml.diagram.usecase.edit.commands.ExtensionPointInRectangleCreateCommand; import org.eclipse.papyrus.uml.diagram.usecase.providers.UMLElementTypes; /** * @generated */ public class UseCasePointsInRectangleItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy { /** * @generated */ public UseCasePointsInRectangleItemSemanticEditPolicy() { super(UMLElementTypes.UseCase_2014); } /** * @generated */ protected Command getCreateCommand(CreateElementRequest req) { if(UMLElementTypes.ExtensionPoint_3008 == req.getElementType()) { return getGEFWrapper(new ExtensionPointInRectangleCreateCommand(req)); } return super.getCreateCommand(req); } }