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