1 | /* |
2 | *Copyright 2006 SDQ Research Group, University of Karlsruhe (TH) |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.seff.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.seff.edit.commands.ForkedBehaviourCreateCommand; |
10 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.commands.SynchronisationPointCreateCommand; |
11 | import de.uka.ipd.sdq.pcm.gmf.seff.providers.PalladioComponentModelElementTypes; |
12 | |
13 | /** |
14 | * @generated |
15 | */ |
16 | public class ForkActionForkedBehavioursItemSemanticEditPolicy extends |
17 | PalladioComponentModelBaseItemSemanticEditPolicy { |
18 | |
19 | /** |
20 | * @generated |
21 | */ |
22 | public ForkActionForkedBehavioursItemSemanticEditPolicy() { |
23 | super(PalladioComponentModelElementTypes.ForkAction_3023); |
24 | } |
25 | |
26 | /** |
27 | * @generated |
28 | */ |
29 | protected Command getCreateCommand(CreateElementRequest req) { |
30 | if (PalladioComponentModelElementTypes.ForkedBehaviour_3027 == req |
31 | .getElementType()) { |
32 | return getGEFWrapper(new ForkedBehaviourCreateCommand(req)); |
33 | } |
34 | if (PalladioComponentModelElementTypes.SynchronisationPoint_3038 == req |
35 | .getElementType()) { |
36 | return getGEFWrapper(new SynchronisationPointCreateCommand(req)); |
37 | } |
38 | return super.getCreateCommand(req); |
39 | } |
40 | } |