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