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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class LoopActionCanonicalEditPolicy0%   (0/1)0%   (0/5)0%   (0/62)0%   (0/20)
LoopActionCanonicalEditPolicy (): 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.ResourceDemandingBehaviourEditPart;
17import de.uka.ipd.sdq.pcm.gmf.seff.part.PalladioComponentModelDiagramUpdater;
18import de.uka.ipd.sdq.pcm.gmf.seff.part.PalladioComponentModelNodeDescriptor;
19import de.uka.ipd.sdq.pcm.gmf.seff.part.PalladioComponentModelVisualIDRegistry;
20import de.uka.ipd.sdq.pcm.seff.SeffPackage;
21 
22/**
23 * @generated
24 */
25public class LoopActionCanonicalEditPolicy extends CanonicalEditPolicy {
26 
27        /**
28         * @generated
29         */
30        Set myFeaturesToSynchronize;
31 
32        /**
33         * @generated
34         */
35        protected List getSemanticChildrenList() {
36                View viewObject = (View) getHost().getModel();
37                List result = new LinkedList();
38                for (Iterator it = PalladioComponentModelDiagramUpdater
39                                .getLoopAction_2004SemanticChildren(viewObject).iterator(); it
40                                .hasNext();) {
41                        result.add(((PalladioComponentModelNodeDescriptor) it.next())
42                                        .getModelElement());
43                }
44                return result;
45        }
46 
47        /**
48         * @generated
49         */
50        protected boolean isOrphaned(Collection semanticChildren, final View view) {
51                int visualID = PalladioComponentModelVisualIDRegistry.getVisualID(view);
52                switch (visualID) {
53                case ResourceDemandingBehaviourEditPart.VISUAL_ID:
54                        if (!semanticChildren.contains(view.getElement())) {
55                                return true;
56                        }
57                }
58                return false;
59        }
60 
61        /**
62         * @generated
63         */
64        protected String getDefaultFactoryHint() {
65                return null;
66        }
67 
68        /**
69         * @generated
70         */
71        protected Set getFeaturesToSynchronize() {
72                if (myFeaturesToSynchronize == null) {
73                        myFeaturesToSynchronize = new HashSet();
74                        myFeaturesToSynchronize.add(SeffPackage.eINSTANCE
75                                        .getAbstractLoopAction_BodyBehaviour_Loop());
76                }
77                return myFeaturesToSynchronize;
78        }
79 
80}

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