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 [UsageScenarioUsageScenarioCompartmentItemSemanticEditPolicy.java]

nameclass, %method, %block, %line, %
UsageScenarioUsageScenarioCompartmentItemSemanticEditPolicy.java0%   (0/1)0%   (0/2)0%   (0/41)0%   (0/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class UsageScenarioUsageScenarioCompartmentItemSemanticEditPolicy0%   (0/1)0%   (0/2)0%   (0/41)0%   (0/12)
UsageScenarioUsageScenarioCompartmentItemSemanticEditPolicy (): void 0%   (0/1)0%   (0/4)0%   (0/2)
getCreateCommand (CreateElementRequest): Command 0%   (0/1)0%   (0/37)0%   (0/10)

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.ClosedWorkloadCreateCommand;
10import de.uka.ipd.sdq.pcm.gmf.usage.edit.commands.OpenWorkloadCreateCommand;
11import de.uka.ipd.sdq.pcm.gmf.usage.edit.commands.ScenarioBehaviourCreateCommand;
12import de.uka.ipd.sdq.pcm.gmf.usage.providers.PalladioComponentModelElementTypes;
13 
14/**
15 * @generated
16 */
17public class UsageScenarioUsageScenarioCompartmentItemSemanticEditPolicy extends
18                PalladioComponentModelBaseItemSemanticEditPolicy {
19 
20        /**
21         * @generated
22         */
23        public UsageScenarioUsageScenarioCompartmentItemSemanticEditPolicy() {
24                super(PalladioComponentModelElementTypes.UsageScenario_2004);
25        }
26 
27        /**
28         * @generated
29         */
30        protected Command getCreateCommand(CreateElementRequest req) {
31                if (PalladioComponentModelElementTypes.ScenarioBehaviour_3014 == req
32                                .getElementType()) {
33                        return getGEFWrapper(new ScenarioBehaviourCreateCommand(req));
34                }
35                if (PalladioComponentModelElementTypes.ClosedWorkload_3015 == req
36                                .getElementType()) {
37                        return getGEFWrapper(new ClosedWorkloadCreateCommand(req));
38                }
39                if (PalladioComponentModelElementTypes.OpenWorkload_3016 == req
40                                .getElementType()) {
41                        return getGEFWrapper(new OpenWorkloadCreateCommand(req));
42                }
43                return super.getCreateCommand(req);
44        }
45 
46}

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