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