/*
*
*/
package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
import org.eclipse.gef.commands.Command;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ArtifactCreateCommandCN;
import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ExecutionEnvironmentCreateCommandCN;
import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
/**
* @generated
*/
public class ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
/**
* @generated
*/
public ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy() {
super(UMLElementTypes.ExecutionEnvironment_2002);
}
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
if(UMLElementTypes.ExecutionEnvironment_21 == req.getElementType()) {
return getGEFWrapper(new ExecutionEnvironmentCreateCommandCN(req));
}
if(UMLElementTypes.Artifact_25 == req.getElementType()) {
return getGEFWrapper(new ArtifactCreateCommandCN(req));
}
return super.getCreateCommand(req);
}
}