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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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