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