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.Property2CreateCommand; import org.eclipse.uml2.diagram.component.providers.UMLElementTypes; /** * @generated */ public class InterfaceAttributesItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy { /** * @generated */ public InterfaceAttributesItemSemanticEditPolicy() { super(UMLElementTypes.Interface_2009); } /** * @generated */ protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.Property_3017 == req.getElementType()) { return getGEFWrapper(new Property2CreateCommand(req)); } return super.getCreateCommand(req); } }