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

nameclass, %method, %block, %line, %
LoopActionBehaviourCompartmentCanonicalEditPolicy.java0%   (0/1)0%   (0/4)0%   (0/64)0%   (0/19)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class LoopActionBehaviourCompartmentCanonicalEditPolicy0%   (0/1)0%   (0/4)0%   (0/64)0%   (0/19)
LoopActionBehaviourCompartmentCanonicalEditPolicy (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getDefaultFactoryHint (): String 0%   (0/1)0%   (0/2)0%   (0/1)
getSemanticChildrenList (): List 0%   (0/1)0%   (0/32)0%   (0/9)
shouldDeleteView (View): boolean 0%   (0/1)0%   (0/27)0%   (0/8)

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.LinkedList;
7import java.util.List;
8 
9import org.eclipse.emf.ecore.EObject;
10import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
11import org.eclipse.gmf.runtime.notation.View;
12 
13import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ResourceDemandingBehaviourEditPart;
14import de.uka.ipd.sdq.pcm.gmf.seff.part.PalladioComponentModelVisualIDRegistry;
15import de.uka.ipd.sdq.pcm.seff.AbstractLoopAction;
16 
17/**
18 * @generated
19 */
20public class LoopActionBehaviourCompartmentCanonicalEditPolicy extends
21                CanonicalEditPolicy {
22 
23        /**
24         * @generated
25         */
26        protected List getSemanticChildrenList() {
27                List result = new LinkedList();
28                EObject modelObject = ((View) getHost().getModel()).getElement();
29                View viewObject = (View) getHost().getModel();
30                EObject nextValue;
31                int nodeVID;
32                nextValue = ((AbstractLoopAction) modelObject).getBodyBehaviour_Loop();
33                nodeVID = PalladioComponentModelVisualIDRegistry.getNodeVisualID(
34                                viewObject, nextValue);
35                if (ResourceDemandingBehaviourEditPart.VISUAL_ID == nodeVID) {
36                        result.add(nextValue);
37                }
38                return result;
39        }
40 
41        /**
42         * @generated
43         */
44        protected boolean shouldDeleteView(View view) {
45                if (view.getEAnnotation("Shortcut") != null) { //$NON-NLS-1$
46                        return view.isSetElement()
47                                        && (view.getElement() == null || view.getElement()
48                                                        .eIsProxy());
49                }
50                int nodeVID = PalladioComponentModelVisualIDRegistry.getVisualID(view);
51                switch (nodeVID) {
52                case ResourceDemandingBehaviourEditPart.VISUAL_ID:
53                        return true;
54                }
55                return false;
56        }
57 
58        /**
59         * @generated
60         */
61        protected String getDefaultFactoryHint() {
62                return null;
63        }
64 
65}

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