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

COVERAGE SUMMARY FOR SOURCE FILE [AbstractUserActionTypeLinkCreateCommand.java]

nameclass, %method, %block, %line, %
AbstractUserActionTypeLinkCreateCommand.java0%   (0/1)0%   (0/6)0%   (0/38)0%   (0/14)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractUserActionTypeLinkCreateCommand0%   (0/1)0%   (0/6)0%   (0/38)0%   (0/14)
AbstractUserActionTypeLinkCreateCommand (CreateRelationshipRequest, ScenarioB... 0%   (0/1)0%   (0/13)0%   (0/5)
doDefaultElementCreation (): EObject 0%   (0/1)0%   (0/12)0%   (0/5)
getEClassToEdit (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getSource (): EObject 0%   (0/1)0%   (0/3)0%   (0/1)
getTarget (): EObject 0%   (0/1)0%   (0/3)0%   (0/1)
setElementToEdit (EObject): void 0%   (0/1)0%   (0/4)0%   (0/1)

1/*
2 *Copyright 2007, SDQ, IPD, University of Karlsruhe
3 */
4package de.uka.ipd.sdq.pcm.gmf.usage.edit.commands;
5 
6import org.eclipse.emf.ecore.EClass;
7import org.eclipse.emf.ecore.EObject;
8import org.eclipse.gmf.runtime.emf.type.core.commands.CreateRelationshipCommand;
9import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
10 
11import de.uka.ipd.sdq.pcm.usagemodel.AbstractUserAction;
12import de.uka.ipd.sdq.pcm.usagemodel.ScenarioBehaviour;
13import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage;
14 
15/**
16 * @generated
17 */
18public class AbstractUserActionTypeLinkCreateCommand extends
19                CreateRelationshipCommand {
20 
21        /**
22         * @generated
23         */
24        private ScenarioBehaviour mySource;
25 
26        /**
27         * @generated
28         */
29        private AbstractUserAction myTarget;
30 
31        /**
32         * @generated
33         */
34        public AbstractUserActionTypeLinkCreateCommand(
35                        CreateRelationshipRequest req, ScenarioBehaviour source,
36                        AbstractUserAction target) {
37                super(req);
38                super.setElementToEdit(source);
39                mySource = source;
40                myTarget = target;
41        }
42 
43        /**
44         * @generated
45         */
46        public EObject getSource() {
47                return mySource;
48        }
49 
50        /**
51         * @generated
52         */
53        public EObject getTarget() {
54                return myTarget;
55        }
56 
57        /**
58         * @generated
59         */
60        protected EClass getEClassToEdit() {
61                return UsagemodelPackage.eINSTANCE.getScenarioBehaviour();
62        }
63 
64        /**
65         * @generated
66         */
67        protected void setElementToEdit(EObject element) {
68                throw new UnsupportedOperationException();
69        }
70 
71        /**
72         * @generated
73         */
74        protected EObject doDefaultElementCreation() {
75                AbstractUserAction newElement = (AbstractUserAction) super
76                                .doDefaultElementCreation();
77                if (newElement != null) {
78                        newElement.setSuccessor(myTarget);
79                }
80                return newElement;
81        }
82 
83}

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