| 1 | /* |
| 2 | *Copyright 2007, SDQ, IPD, Uni Karlsruhe (TH) |
| 3 | */ |
| 4 | package de.uka.ipd.sdq.pcm.gmf.composite.edit.policies; |
| 5 | |
| 6 | import org.eclipse.gef.commands.Command; |
| 7 | import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; |
| 8 | |
| 9 | import de.uka.ipd.sdq.pcm.gmf.composite.edit.commands.AssemblyContextCreateCommand; |
| 10 | import de.uka.ipd.sdq.pcm.gmf.composite.providers.PalladioComponentModelElementTypes; |
| 11 | |
| 12 | /** |
| 13 | * @generated |
| 14 | */ |
| 15 | public class ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentItemSemanticEditPolicy |
| 16 | extends PalladioComponentModelBaseItemSemanticEditPolicy { |
| 17 | |
| 18 | /** |
| 19 | * @generated |
| 20 | */ |
| 21 | public ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentItemSemanticEditPolicy() { |
| 22 | super( |
| 23 | PalladioComponentModelElementTypes.ComposedProvidingRequiringEntity_2002); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * @generated |
| 28 | */ |
| 29 | protected Command getCreateCommand(CreateElementRequest req) { |
| 30 | if (PalladioComponentModelElementTypes.AssemblyContext_3006 == req |
| 31 | .getElementType()) { |
| 32 | return getGEFWrapper(new AssemblyContextCreateCommand(req)); |
| 33 | } |
| 34 | return super.getCreateCommand(req); |
| 35 | } |
| 36 | } |