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

nameclass, %method, %block, %line, %
ScenarioBehaviourScenarioBehaviourStepsCompartmentCanonicalEditPolicy.java0%   (0/1)0%   (0/5)0%   (0/62)0%   (0/20)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ScenarioBehaviourScenarioBehaviourStepsCompartmentCanonicalEditPolicy0%   (0/1)0%   (0/5)0%   (0/62)0%   (0/20)
ScenarioBehaviourScenarioBehaviourStepsCompartmentCanonicalEditPolicy (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getDefaultFactoryHint (): String 0%   (0/1)0%   (0/2)0%   (0/1)
getFeaturesToSynchronize (): Set 0%   (0/1)0%   (0/17)0%   (0/5)
getSemanticChildrenList (): List 0%   (0/1)0%   (0/26)0%   (0/8)
isOrphaned (Collection, View): boolean 0%   (0/1)0%   (0/14)0%   (0/5)

1/*
2 *Copyright 2007, SDQ, IPD, University of Karlsruhe
3 */
4package de.uka.ipd.sdq.pcm.gmf.usage.edit.policies;
5 
6import java.util.Collection;
7import java.util.HashSet;
8import java.util.Iterator;
9import java.util.LinkedList;
10import java.util.List;
11import java.util.Set;
12 
13import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
14import org.eclipse.gmf.runtime.notation.View;
15 
16import de.uka.ipd.sdq.pcm.gmf.usage.edit.parts.BranchEditPart;
17import de.uka.ipd.sdq.pcm.gmf.usage.edit.parts.DelayEditPart;
18import de.uka.ipd.sdq.pcm.gmf.usage.edit.parts.EntryLevelSystemCallEditPart;
19import de.uka.ipd.sdq.pcm.gmf.usage.edit.parts.LoopEditPart;
20import de.uka.ipd.sdq.pcm.gmf.usage.edit.parts.StartEditPart;
21import de.uka.ipd.sdq.pcm.gmf.usage.edit.parts.StopEditPart;
22import de.uka.ipd.sdq.pcm.gmf.usage.part.PalladioComponentModelDiagramUpdater;
23import de.uka.ipd.sdq.pcm.gmf.usage.part.PalladioComponentModelNodeDescriptor;
24import de.uka.ipd.sdq.pcm.gmf.usage.part.PalladioComponentModelVisualIDRegistry;
25import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage;
26 
27/**
28 * @generated
29 */
30public class ScenarioBehaviourScenarioBehaviourStepsCompartmentCanonicalEditPolicy
31                extends CanonicalEditPolicy {
32 
33        /**
34         * @generated
35         */
36        Set myFeaturesToSynchronize;
37 
38        /**
39         * @generated
40         */
41        protected List getSemanticChildrenList() {
42                View viewObject = (View) getHost().getModel();
43                List result = new LinkedList();
44                for (Iterator it = PalladioComponentModelDiagramUpdater
45                                .getScenarioBehaviourScenarioBehaviourStepsCompartment_7013SemanticChildren(
46                                                viewObject).iterator(); it.hasNext();) {
47                        result.add(((PalladioComponentModelNodeDescriptor) it.next())
48                                        .getModelElement());
49                }
50                return result;
51        }
52 
53        /**
54         * @generated
55         */
56        protected boolean isOrphaned(Collection semanticChildren, final View view) {
57                int visualID = PalladioComponentModelVisualIDRegistry.getVisualID(view);
58                switch (visualID) {
59                case StartEditPart.VISUAL_ID:
60                case StopEditPart.VISUAL_ID:
61                case EntryLevelSystemCallEditPart.VISUAL_ID:
62                case LoopEditPart.VISUAL_ID:
63                case BranchEditPart.VISUAL_ID:
64                case DelayEditPart.VISUAL_ID:
65                        if (!semanticChildren.contains(view.getElement())) {
66                                return true;
67                        }
68                }
69                return false;
70        }
71 
72        /**
73         * @generated
74         */
75        protected String getDefaultFactoryHint() {
76                return null;
77        }
78 
79        /**
80         * @generated
81         */
82        protected Set getFeaturesToSynchronize() {
83                if (myFeaturesToSynchronize == null) {
84                        myFeaturesToSynchronize = new HashSet();
85                        myFeaturesToSynchronize.add(UsagemodelPackage.eINSTANCE
86                                        .getScenarioBehaviour_Actions_ScenarioBehaviour());
87                }
88                return myFeaturesToSynchronize;
89        }
90 
91}

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