| 1 | /* |
| 2 | * Copyright 2009, SDQ, IPD, Uni Karlsruhe (TH) |
| 3 | */ |
| 4 | package de.uka.ipd.sdq.pcm.gmf.resource.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.resource.edit.commands.CommunicationLinkResourceSpecificationCreateCommand; |
| 10 | import de.uka.ipd.sdq.pcm.gmf.resource.providers.PalladioComponentModelElementTypes; |
| 11 | |
| 12 | /** |
| 13 | * @generated |
| 14 | */ |
| 15 | public class LinkingResourceNetworkSwitchCompartmentItemSemanticEditPolicy |
| 16 | extends PalladioComponentModelBaseItemSemanticEditPolicy { |
| 17 | |
| 18 | /** |
| 19 | * @generated |
| 20 | */ |
| 21 | public LinkingResourceNetworkSwitchCompartmentItemSemanticEditPolicy() { |
| 22 | super(PalladioComponentModelElementTypes.LinkingResource_2003); |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * @generated |
| 27 | */ |
| 28 | protected Command getCreateCommand(CreateElementRequest req) { |
| 29 | if (PalladioComponentModelElementTypes.CommunicationLinkResourceSpecification_3002 == req |
| 30 | .getElementType()) { |
| 31 | return getGEFWrapper(new CommunicationLinkResourceSpecificationCreateCommand( |
| 32 | req)); |
| 33 | } |
| 34 | return super.getCreateCommand(req); |
| 35 | } |
| 36 | |
| 37 | } |