package org.eclipse.uml2.diagram.deploy.edit.policies;
import org.eclipse.gef.commands.Command;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
import org.eclipse.uml2.diagram.deploy.edit.commands.PropertyCreateCommand;
import org.eclipse.uml2.diagram.deploy.providers.UMLElementTypes;
import org.eclipse.uml2.uml.UMLPackage;
/**
* @generated
*/
public class DeploymentSpecificationPropertiesItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
/**
* @generated
*/
public DeploymentSpecificationPropertiesItemSemanticEditPolicy() {
super(UMLElementTypes.DeploymentSpecification_2007);
}
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
if (UMLElementTypes.Property_3003 == req.getElementType()) {
return getGEFWrapper(new PropertyCreateCommand(req));
}
return super.getCreateCommand(req);
}
}