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

COVERAGE SUMMARY FOR SOURCE FILE [ProvidedDelegationConnectorEditPart.java]

nameclass, %method, %block, %line, %
ProvidedDelegationConnectorEditPart.java0%   (0/2)0%   (0/7)0%   (0/104)0%   (0/22)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProvidedDelegationConnectorEditPart0%   (0/1)0%   (0/5)0%   (0/25)0%   (0/9)
ProvidedDelegationConnectorEditPart (View): void 0%   (0/1)0%   (0/4)0%   (0/2)
access$0 (ProvidedDelegationConnectorEditPart): IMapMode 0%   (0/1)0%   (0/3)0%   (0/1)
createConnectionFigure (): Connection 0%   (0/1)0%   (0/5)0%   (0/1)
createDefaultEditPolicies (): void 0%   (0/1)0%   (0/9)0%   (0/4)
getPrimaryShape (): ProvidedDelegationConnectorEditPart$OperationProvidedDele... 0%   (0/1)0%   (0/4)0%   (0/1)
     
class ProvidedDelegationConnectorEditPart$OperationProvidedDelegationConnectorFigure0%   (0/1)0%   (0/2)0%   (0/79)0%   (0/13)
ProvidedDelegationConnectorEditPart$OperationProvidedDelegationConnectorFigur... 0%   (0/1)0%   (0/13)0%   (0/4)
createTargetDecoration (): RotatableDecoration 0%   (0/1)0%   (0/66)0%   (0/9)

1/*
2 * Copyright 2007, SDQ, IPD, Uni Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.composite.edit.parts;
5 
6import org.eclipse.draw2d.Connection;
7import org.eclipse.draw2d.PolylineDecoration;
8import org.eclipse.draw2d.RotatableDecoration;
9import org.eclipse.draw2d.geometry.PointList;
10import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart;
11import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
12import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
13import org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx;
14import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
15import org.eclipse.gmf.runtime.notation.View;
16 
17import de.uka.ipd.sdq.pcm.gmf.composite.edit.policies.ProvidedDelegationConnectorItemSemanticEditPolicy;
18 
19/**
20 * @generated
21 */
22public class ProvidedDelegationConnectorEditPart extends ConnectionNodeEditPart
23                implements ITreeBranchEditPart {
24 
25        /**
26         * @generated
27         */
28        public static final int VISUAL_ID = 4006;
29 
30        /**
31         * @generated
32         */
33        public ProvidedDelegationConnectorEditPart(View view) {
34                super(view);
35        }
36 
37        /**
38         * @generated
39         */
40        protected void createDefaultEditPolicies() {
41                super.createDefaultEditPolicies();
42                installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
43                                new ProvidedDelegationConnectorItemSemanticEditPolicy());
44        }
45 
46        /**
47         * Creates figure for this edit part.
48         * 
49         * Body of this method does not depend on settings in generation model
50         * so you may safely remove <i>generated</i> tag and modify it.
51         * 
52         * @generated
53         */
54        protected Connection createConnectionFigure() {
55                return new OperationProvidedDelegationConnectorFigure();
56        }
57 
58        /**
59         * @generated
60         */
61        public OperationProvidedDelegationConnectorFigure getPrimaryShape() {
62                return (OperationProvidedDelegationConnectorFigure) getFigure();
63        }
64 
65        /**
66         * @generated
67         */
68        public class OperationProvidedDelegationConnectorFigure extends
69                        PolylineConnectionEx {
70 
71                /**
72                 * @generated
73                 */
74                public OperationProvidedDelegationConnectorFigure() {
75                        this.setLineWidth(1);
76 
77                        setTargetDecoration(createTargetDecoration());
78                }
79 
80                /**
81                 * @generated
82                 */
83                private RotatableDecoration createTargetDecoration() {
84                        PolylineDecoration df = new PolylineDecoration();
85                        df.setLineWidth(1);
86                        PointList pl = new PointList();
87                        pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1));
88                        pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
89                        pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1));
90                        df.setTemplate(pl);
91                        df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
92                        return df;
93                }
94 
95        }
96 
97}

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