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.Operation2CreateCommand; import org.eclipse.uml2.diagram.clazz.providers.UMLElementTypes; import org.eclipse.uml2.uml.UMLPackage; /** * @generated */ public class AssociationClassOperationsItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy { /** * @generated */ public AssociationClassOperationsItemSemanticEditPolicy() { super(UMLElementTypes.AssociationClass_2007); } /** * @generated */ protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.Operation_3020 == req.getElementType()) { return getGEFWrapper(new Operation2CreateCommand(req)); } return super.getCreateCommand(req); } }