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

nameclass, %method, %block, %line, %
BranchBranchCompartmentCanonicalEditPolicy.java0%   (0/1)0%   (0/4)0%   (0/60)0%   (0/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class BranchBranchCompartmentCanonicalEditPolicy0%   (0/1)0%   (0/4)0%   (0/60)0%   (0/15)
BranchBranchCompartmentCanonicalEditPolicy (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getDefaultFactoryHint (): String 0%   (0/1)0%   (0/2)0%   (0/1)
getSemanticChildrenList (): List 0%   (0/1)0%   (0/41)0%   (0/11)
shouldDeleteView (View): boolean 0%   (0/1)0%   (0/14)0%   (0/2)

1/*
2 *Copyright 2007, SDQ, IPD, University of Karlsruhe
3 */
4package de.uka.ipd.sdq.pcm.gmf.usage.edit.policies;
5 
6import java.util.Iterator;
7import java.util.LinkedList;
8import java.util.List;
9 
10import org.eclipse.emf.ecore.EObject;
11import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
12import org.eclipse.gmf.runtime.notation.View;
13 
14import de.uka.ipd.sdq.pcm.gmf.usage.edit.parts.BranchTransitionEditPart;
15import de.uka.ipd.sdq.pcm.gmf.usage.part.PalladioComponentModelVisualIDRegistry;
16import de.uka.ipd.sdq.pcm.usagemodel.Branch;
17 
18/**
19 * @generated
20 */
21public class BranchBranchCompartmentCanonicalEditPolicy extends
22                CanonicalEditPolicy {
23 
24        /**
25         * @generated
26         */
27        protected List getSemanticChildrenList() {
28                List result = new LinkedList();
29                EObject modelObject = ((View) getHost().getModel()).getElement();
30                View viewObject = (View) getHost().getModel();
31                EObject nextValue;
32                int nodeVID;
33                for (Iterator values = ((Branch) modelObject)
34                                .getBranchTransitions_Branch().iterator(); values.hasNext();) {
35                        nextValue = (EObject) values.next();
36                        nodeVID = PalladioComponentModelVisualIDRegistry.getNodeVisualID(
37                                        viewObject, nextValue);
38                        if (BranchTransitionEditPart.VISUAL_ID == nodeVID) {
39                                result.add(nextValue);
40                        }
41                }
42                return result;
43        }
44 
45        /**
46         * @generated
47         */
48        protected boolean shouldDeleteView(View view) {
49                return view.isSetElement() && view.getElement() != null
50                                && view.getElement().eIsProxy();
51        }
52 
53        /**
54         * @generated
55         */
56        protected String getDefaultFactoryHint() {
57                return null;
58        }
59 
60}

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