package org.eclipse.uml2.diagram.profile.edit.policies; import org.eclipse.gef.commands.Command; import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; import org.eclipse.uml2.diagram.profile.edit.commands.Stereotype2CreateCommand; import org.eclipse.uml2.diagram.profile.providers.UMLElementTypes; import org.eclipse.uml2.uml.UMLPackage; /** * @generated */ public class ProfileContentsItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy { /** * @generated */ public ProfileContentsItemSemanticEditPolicy() { super(UMLElementTypes.Profile_2002); } /** * @generated */ protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.Stereotype_3003 == req.getElementType()) { return getGEFWrapper(new Stereotype2CreateCommand(req)); } return super.getCreateCommand(req); } }