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

COVERAGE SUMMARY FOR SOURCE FILE [AssemblyConnectorTypeLinkCreateCommand.java]

nameclass, %method, %block, %line, %
AssemblyConnectorTypeLinkCreateCommand.java0%   (0/1)0%   (0/7)0%   (0/64)0%   (0/20)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AssemblyConnectorTypeLinkCreateCommand0%   (0/1)0%   (0/7)0%   (0/64)0%   (0/20)
AssemblyConnectorTypeLinkCreateCommand (CreateRelationshipRequest, ComposedSt... 0%   (0/1)0%   (0/16)0%   (0/6)
doDefaultElementCreation (): EObject 0%   (0/1)0%   (0/32)0%   (0/9)
getContainer (): ComposedStructure 0%   (0/1)0%   (0/3)0%   (0/1)
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, Uni Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.composite.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.core.composition.AssemblyConnector;
12import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext;
13import de.uka.ipd.sdq.pcm.core.composition.ComposedStructure;
14import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
15import de.uka.ipd.sdq.pcm.repository.OperationProvidedRole;
16import de.uka.ipd.sdq.pcm.repository.OperationRequiredRole;
17 
18/**
19 * @generated
20 */
21public class AssemblyConnectorTypeLinkCreateCommand extends
22                CreateRelationshipCommand {
23 
24        /**
25         * @generated
26         */
27        private ComposedStructure myContainer;
28 
29        /**
30         * @generated
31         */
32        private OperationRequiredRole mySource;
33 
34        /**
35         * @generated
36         */
37        private OperationProvidedRole myTarget;
38 
39        /**
40         * @generated
41         */
42        public AssemblyConnectorTypeLinkCreateCommand(
43                        CreateRelationshipRequest req, ComposedStructure container,
44                        OperationRequiredRole source, OperationProvidedRole target) {
45                super(req);
46                super.setElementToEdit(container);
47                myContainer = container;
48                mySource = source;
49                myTarget = target;
50        }
51 
52        /**
53         * @generated
54         */
55        public ComposedStructure getContainer() {
56                return myContainer;
57        }
58 
59        /**
60         * @generated
61         */
62        public EObject getSource() {
63                return mySource;
64        }
65 
66        /**
67         * @generated
68         */
69        public EObject getTarget() {
70                return myTarget;
71        }
72 
73        /**
74         * @generated
75         */
76        protected EClass getEClassToEdit() {
77                return CompositionPackage.eINSTANCE.getComposedStructure();
78        }
79 
80        /**
81         * @generated
82         */
83        protected void setElementToEdit(EObject element) {
84                throw new UnsupportedOperationException();
85        }
86 
87        /**
88         * @generated not
89         */
90        protected EObject doDefaultElementCreation() {
91                AssemblyConnector newElement = (AssemblyConnector) super
92                                .doDefaultElementCreation();
93                if (newElement != null) {
94                        newElement.setProvidedRole_AssemblyConnector(myTarget);
95                        newElement.setRequiredRole_AssemblyConnector(mySource);
96                        CreateRelationshipRequest req = (CreateRelationshipRequest) this.getRequest();
97                        newElement.setRequiringAssemblyContext_AssemblyConnector((AssemblyContext) req.getParameter("REQ_CHILD_CONTEXT"));
98                        newElement.setProvidingAssemblyContext_AssemblyConnector((AssemblyContext) req.getParameter("PROV_CHILD_CONTEXT"));
99                }
100                return newElement;
101        }
102 
103}

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