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

nameclass, %method, %block, %line, %
RecoveryActionRecoveryBlockCompartmentCanonicalEditPolicy.java0%   (0/1)0%   (0/5)0%   (0/62)0%   (0/21)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class RecoveryActionRecoveryBlockCompartmentCanonicalEditPolicy0%   (0/1)0%   (0/5)0%   (0/62)0%   (0/21)
RecoveryActionRecoveryBlockCompartmentCanonicalEditPolicy (): 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/6)
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.RecoveryActionBehaviourEditPart;
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;
20 
21/**
22 * @generated
23 */
24public class RecoveryActionRecoveryBlockCompartmentCanonicalEditPolicy extends
25                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                                .getRecoveryActionRecoveryBlockCompartment_7054SemanticChildren(
40                                                viewObject).iterator(); it.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 RecoveryActionBehaviourEditPart.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
75                                        .add(de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage.eINSTANCE
76                                                        .getRecoveryAction_RecoveryActionBehaviours__RecoveryAction());
77                }
78                return myFeaturesToSynchronize;
79        }
80 
81}

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