EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.gmf.usage.edit.policies]

COVERAGE SUMMARY FOR SOURCE FILE [ScenarioBehaviourScenarioBehaviourStepsCompartmentItemSemanticEditPolicy.java]

nameclass, %method, %block, %line, %
ScenarioBehaviourScenarioBehaviourStepsCompartmentItemSemanticEditPolicy.java0%   (0/1)0%   (0/2)0%   (0/74)0%   (0/21)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ScenarioBehaviourScenarioBehaviourStepsCompartmentItemSemanticEditPolicy0%   (0/1)0%   (0/2)0%   (0/74)0%   (0/21)
ScenarioBehaviourScenarioBehaviourStepsCompartmentItemSemanticEditPolicy (): ... 0%   (0/1)0%   (0/4)0%   (0/2)
getCreateCommand (CreateElementRequest): Command 0%   (0/1)0%   (0/70)0%   (0/19)

1/*
2 *Copyright 2007, SDQ, IPD, University of Karlsruhe
3 */
4package de.uka.ipd.sdq.pcm.gmf.usage.edit.policies;
5 
6import org.eclipse.gef.commands.Command;
7import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
8 
9import de.uka.ipd.sdq.pcm.gmf.usage.edit.commands.BranchCreateCommand;
10import de.uka.ipd.sdq.pcm.gmf.usage.edit.commands.DelayCreateCommand;
11import de.uka.ipd.sdq.pcm.gmf.usage.edit.commands.EntryLevelSystemCallCreateCommand;
12import de.uka.ipd.sdq.pcm.gmf.usage.edit.commands.LoopCreateCommand;
13import de.uka.ipd.sdq.pcm.gmf.usage.edit.commands.StartCreateCommand;
14import de.uka.ipd.sdq.pcm.gmf.usage.edit.commands.StopCreateCommand;
15import de.uka.ipd.sdq.pcm.gmf.usage.providers.PalladioComponentModelElementTypes;
16 
17/**
18 * @generated
19 */
20public class ScenarioBehaviourScenarioBehaviourStepsCompartmentItemSemanticEditPolicy
21                extends PalladioComponentModelBaseItemSemanticEditPolicy {
22 
23        /**
24         * @generated
25         */
26        public ScenarioBehaviourScenarioBehaviourStepsCompartmentItemSemanticEditPolicy() {
27                super(PalladioComponentModelElementTypes.ScenarioBehaviour_3014);
28        }
29 
30        /**
31         * @generated
32         */
33        protected Command getCreateCommand(CreateElementRequest req) {
34                if (PalladioComponentModelElementTypes.Start_3001 == req
35                                .getElementType()) {
36                        return getGEFWrapper(new StartCreateCommand(req));
37                }
38                if (PalladioComponentModelElementTypes.Stop_3002 == req
39                                .getElementType()) {
40                        return getGEFWrapper(new StopCreateCommand(req));
41                }
42                if (PalladioComponentModelElementTypes.EntryLevelSystemCall_3003 == req
43                                .getElementType()) {
44                        return getGEFWrapper(new EntryLevelSystemCallCreateCommand(req));
45                }
46                if (PalladioComponentModelElementTypes.Loop_3005 == req
47                                .getElementType()) {
48                        return getGEFWrapper(new LoopCreateCommand(req));
49                }
50                if (PalladioComponentModelElementTypes.Branch_3008 == req
51                                .getElementType()) {
52                        return getGEFWrapper(new BranchCreateCommand(req));
53                }
54                if (PalladioComponentModelElementTypes.Delay_3017 == req
55                                .getElementType()) {
56                        return getGEFWrapper(new DelayCreateCommand(req));
57                }
58                return super.getCreateCommand(req);
59        }
60}

[all classes][de.uka.ipd.sdq.pcm.gmf.usage.edit.policies]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov