/* * (c) 2011 - 2013 University of Mannheim: Software Engineering Group */ package de.uni_mannheim.informatik.swt.models.plm.diagram.edit.policies; import org.eclipse.gef.commands.Command; import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; /** * @generated */ public class ConnectionConnectionContentsCompartmentItemSemanticEditPolicy extends de.uni_mannheim.informatik.swt.models.plm.diagram.edit.policies.PLMBaseItemSemanticEditPolicy { /** * @generated */ public ConnectionConnectionContentsCompartmentItemSemanticEditPolicy() { super( de.uni_mannheim.informatik.swt.models.plm.diagram.providers.PLMElementTypes.Connection_3060); } /** * @generated */ protected Command getCreateCommand(CreateElementRequest req) { if (de.uni_mannheim.informatik.swt.models.plm.diagram.providers.PLMElementTypes.Entity_3085 == req .getElementType()) { return getGEFWrapper(new de.uni_mannheim.informatik.swt.models.plm.diagram.edit.commands.EntityCreateCommand( req)); } if (de.uni_mannheim.informatik.swt.models.plm.diagram.providers.PLMElementTypes.Connection_3086 == req .getElementType()) { return getGEFWrapper(new de.uni_mannheim.informatik.swt.models.plm.diagram.edit.commands.Connection2CreateCommand( req)); } return super.getCreateCommand(req); } }