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

nameclass, %method, %block, %line, %
ProvidedRole2CreateCommand.java0%   (0/1)0%   (0/3)0%   (0/21)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProvidedRole2CreateCommand0%   (0/1)0%   (0/3)0%   (0/21)0%   (0/8)
ProvidedRole2CreateCommand (CreateElementRequest): void 0%   (0/1)0%   (0/4)0%   (0/2)
getEClassToEdit (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getElementToEdit (): EObject 0%   (0/1)0%   (0/14)0%   (0/5)

1/*
2 *Copyright 2007, SDQ, IPD, Uni Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.composite.edit.commands;
5 
6import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
7 
8import org.eclipse.emf.ecore.EClass;
9import org.eclipse.emf.ecore.EObject;
10 
11import org.eclipse.gmf.runtime.emf.type.core.commands.CreateElementCommand;
12 
13import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
14 
15import org.eclipse.gmf.runtime.notation.View;
16 
17// TODO: decide whether this file is obsolete
18 
19/**
20 * @generated
21 */
22public class ProvidedRole2CreateCommand extends CreateElementCommand {
23 
24        /**
25         * @generated
26         */
27        public ProvidedRole2CreateCommand(CreateElementRequest req) {
28                super(req);
29        }
30 
31        /**
32         * @generated
33         */
34        protected EClass getEClassToEdit() {
35                return EntityPackage.eINSTANCE.getInterfaceProvidingEntity();
36        }
37 
38        /**
39         * @generated
40         */
41        protected EObject getElementToEdit() {
42                EObject container = ((CreateElementRequest) getRequest())
43                                .getContainer();
44                if (container instanceof View) {
45                        container = ((View) container).getElement();
46                }
47                return container;
48        }
49 
50}

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