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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AssemblyConnectorEditPart0%   (0/1)0%   (0/5)0%   (0/25)0%   (0/9)
AssemblyConnectorEditPart (View): void 0%   (0/1)0%   (0/4)0%   (0/2)
access$0 (AssemblyConnectorEditPart): 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 (): AssemblyConnectorEditPart$AssemblyConnectorFigure 0%   (0/1)0%   (0/4)0%   (0/1)
     
class AssemblyConnectorEditPart$AssemblyConnectorFigure0%   (0/1)0%   (0/2)0%   (0/79)0%   (0/13)
AssemblyConnectorEditPart$AssemblyConnectorFigure (AssemblyConnectorEditPart)... 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.notation.View;
15 
16import de.uka.ipd.sdq.pcm.gmf.composite.edit.policies.AssemblyConnectorItemSemanticEditPolicy;
17 
18/**
19 * @generated
20 */
21public class AssemblyConnectorEditPart extends ConnectionNodeEditPart implements
22                ITreeBranchEditPart {
23 
24        /**
25         * @generated
26         */
27        public static final int VISUAL_ID = 4004;
28 
29        /**
30         * @generated
31         */
32        public AssemblyConnectorEditPart(View view) {
33                super(view);
34        }
35 
36        /**
37         * @generated
38         */
39        protected void createDefaultEditPolicies() {
40                super.createDefaultEditPolicies();
41                installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
42                                new AssemblyConnectorItemSemanticEditPolicy());
43        }
44 
45        /**
46         * Creates figure for this edit part.
47         * 
48         * Body of this method does not depend on settings in generation model
49         * so you may safely remove <i>generated</i> tag and modify it.
50         * 
51         * @generated
52         */
53        protected Connection createConnectionFigure() {
54                return new AssemblyConnectorFigure();
55        }
56 
57        /**
58         * @generated
59         */
60        public AssemblyConnectorFigure getPrimaryShape() {
61                return (AssemblyConnectorFigure) getFigure();
62        }
63 
64        /**
65         * @generated
66         */
67        public class AssemblyConnectorFigure extends PolylineConnectionEx {
68 
69                /**
70                 * @generated
71                 */
72                public AssemblyConnectorFigure() {
73                        this.setLineWidth(1);
74 
75                        setTargetDecoration(createTargetDecoration());
76                }
77 
78                /**
79                 * @generated
80                 */
81                private RotatableDecoration createTargetDecoration() {
82                        PolylineDecoration df = new PolylineDecoration();
83                        df.setLineWidth(1);
84                        PointList pl = new PointList();
85                        pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(-1));
86                        pl.addPoint(getMapMode().DPtoLP(0), getMapMode().DPtoLP(0));
87                        pl.addPoint(getMapMode().DPtoLP(-1), getMapMode().DPtoLP(1));
88                        df.setTemplate(pl);
89                        df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
90                        return df;
91                }
92 
93        }
94 
95}

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