package org.eclipse.uml2.diagram.component.edit.policies; import org.eclipse.gef.commands.Command; import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; import org.eclipse.uml2.diagram.component.edit.commands.OperationCreateCommand; import org.eclipse.uml2.diagram.component.providers.UMLElementTypes; /** * @generated */ public class InterfaceOperationsItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy { /** * @generated */ public InterfaceOperationsItemSemanticEditPolicy() { super(UMLElementTypes.Interface_2009); } /** * @generated */ protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.Operation_3018 == req.getElementType()) { return getGEFWrapper(new OperationCreateCommand(req)); } return super.getCreateCommand(req); } }