blob: 5c7fd48dbb610761ff23536788764c428a2dbbf0 [file] [log] [blame]
/*
*
*/
package comrel.diagram.edit.policies;
import org.eclipse.gef.commands.Command;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
import comrel.diagram.edit.commands.ConditionCheckCreateCommand;
import comrel.diagram.providers.ComrelElementTypes;
/**
* @generated
*/
public class ConditionalUnitConditionalUnitIfCompartmentItemSemanticEditPolicy
extends ComrelBaseItemSemanticEditPolicy {
/**
* @generated
*/
public ConditionalUnitConditionalUnitIfCompartmentItemSemanticEditPolicy() {
super(ComrelElementTypes.ConditionalUnit_3030);
}
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
if (ComrelElementTypes.ConditionCheck_3076 == req.getElementType()) {
return getGEFWrapper(new ConditionCheckCreateCommand(req));
}
return super.getCreateCommand(req);
}
}