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

COVERAGE SUMMARY FOR SOURCE FILE [ForkedBehaviourSynchronisationPointForkedBehavioursCanonicalEditPolicy.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ForkedBehaviourSynchronisationPointForkedBehavioursCanonicalEditPolicy0%   (0/1)0%   (0/5)0%   (0/62)0%   (0/20)
ForkedBehaviourSynchronisationPointForkedBehavioursCanonicalEditPolicy (): 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 2006 SDQ Research Group, University of Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.seff.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.seff.edit.parts.AcquireAction2EditPart;
17import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.BranchAction2EditPart;
18import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.CollectionIteratorAction2EditPart;
19import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.EmitEventAction2EditPart;
20import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ExternalCallAction2EditPart;
21import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ForkAction2EditPart;
22import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InternalAction2EditPart;
23import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.LoopAction2EditPart;
24import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.RecoveryAction2EditPart;
25import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ReleaseAction2EditPart;
26import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.StartAction2EditPart;
27import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.StopAction2EditPart;
28import de.uka.ipd.sdq.pcm.gmf.seff.part.PalladioComponentModelDiagramUpdater;
29import de.uka.ipd.sdq.pcm.gmf.seff.part.PalladioComponentModelNodeDescriptor;
30import de.uka.ipd.sdq.pcm.gmf.seff.part.PalladioComponentModelVisualIDRegistry;
31import de.uka.ipd.sdq.pcm.seff.SeffPackage;
32 
33/**
34 * @generated
35 */
36public class ForkedBehaviourSynchronisationPointForkedBehavioursCanonicalEditPolicy
37                extends CanonicalEditPolicy {
38 
39        /**
40         * @generated
41         */
42        Set myFeaturesToSynchronize;
43 
44        /**
45         * @generated
46         */
47        protected List getSemanticChildrenList() {
48                View viewObject = (View) getHost().getModel();
49                List result = new LinkedList();
50                for (Iterator it = PalladioComponentModelDiagramUpdater
51                                .getForkedBehaviourBehaviourCompartment_7033SemanticChildren(
52                                                viewObject).iterator(); it.hasNext();) {
53                        result.add(((PalladioComponentModelNodeDescriptor) it.next())
54                                        .getModelElement());
55                }
56                return result;
57        }
58 
59        /**
60         * @generated
61         */
62        protected boolean isOrphaned(Collection semanticChildren, final View view) {
63                int visualID = PalladioComponentModelVisualIDRegistry.getVisualID(view);
64                switch (visualID) {
65                case StartAction2EditPart.VISUAL_ID:
66                case StopAction2EditPart.VISUAL_ID:
67                case LoopAction2EditPart.VISUAL_ID:
68                case InternalAction2EditPart.VISUAL_ID:
69                case BranchAction2EditPart.VISUAL_ID:
70                case ExternalCallAction2EditPart.VISUAL_ID:
71                case EmitEventAction2EditPart.VISUAL_ID:
72                case CollectionIteratorAction2EditPart.VISUAL_ID:
73                case AcquireAction2EditPart.VISUAL_ID:
74                case ReleaseAction2EditPart.VISUAL_ID:
75                case ForkAction2EditPart.VISUAL_ID:
76                case RecoveryAction2EditPart.VISUAL_ID:
77                        if (!semanticChildren.contains(view.getElement())) {
78                                return true;
79                        }
80                }
81                return false;
82        }
83 
84        /**
85         * @generated
86         */
87        protected String getDefaultFactoryHint() {
88                return null;
89        }
90 
91        /**
92         * @generated
93         */
94        protected Set getFeaturesToSynchronize() {
95                if (myFeaturesToSynchronize == null) {
96                        myFeaturesToSynchronize = new HashSet();
97                        myFeaturesToSynchronize.add(SeffPackage.eINSTANCE
98                                        .getResourceDemandingBehaviour_Steps_Behaviour());
99                }
100                return myFeaturesToSynchronize;
101        }
102 
103}

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