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

COVERAGE SUMMARY FOR SOURCE FILE [InternalActionInfrastructureCallsCompartmentEditPart.java]

nameclass, %method, %block, %line, %
InternalActionInfrastructureCallsCompartmentEditPart.java0%   (0/1)0%   (0/6)0%   (0/60)0%   (0/25)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class InternalActionInfrastructureCallsCompartmentEditPart0%   (0/1)0%   (0/6)0%   (0/60)0%   (0/25)
InternalActionInfrastructureCallsCompartmentEditPart (View): void 0%   (0/1)0%   (0/4)0%   (0/2)
createDefaultEditPolicies (): void 0%   (0/1)0%   (0/33)0%   (0/14)
createFigure (): IFigure 0%   (0/1)0%   (0/9)0%   (0/4)
getCompartmentName (): String 0%   (0/1)0%   (0/2)0%   (0/1)
hasModelChildrenChanged (Notification): boolean 0%   (0/1)0%   (0/2)0%   (0/1)
setRatio (Double): void 0%   (0/1)0%   (0/10)0%   (0/3)

1/*
2 * Copyright 2006 SDQ Research Group, University of Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.seff.edit.parts;
5 
6import org.eclipse.draw2d.IFigure;
7import org.eclipse.emf.common.notify.Notification;
8import org.eclipse.gef.EditPolicy;
9import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
10import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
11import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
12import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
13import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
14import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditPolicy;
15import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
16import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
17import org.eclipse.gmf.runtime.notation.View;
18 
19import de.uka.ipd.sdq.pcm.gmf.seff.edit.policies.InternalActionInfrastructureCallsCompartmentCanonicalEditPolicy;
20import de.uka.ipd.sdq.pcm.gmf.seff.edit.policies.InternalActionInfrastructureCallsCompartmentItemSemanticEditPolicy;
21import de.uka.ipd.sdq.pcm.gmf.seff.part.Messages;
22 
23/**
24 * @generated
25 */
26public class InternalActionInfrastructureCallsCompartmentEditPart extends
27                ListCompartmentEditPart {
28 
29        /**
30         * @generated
31         */
32        public static final int VISUAL_ID = 7048;
33 
34        /**
35         * @generated
36         */
37        public InternalActionInfrastructureCallsCompartmentEditPart(View view) {
38                super(view);
39        }
40 
41        /**
42         * @generated
43         */
44        protected boolean hasModelChildrenChanged(Notification evt) {
45                return false;
46        }
47 
48        /**
49         * @generated
50         */
51        public String getCompartmentName() {
52                return Messages.InternalActionInfrastructureCallsCompartmentEditPart_title;
53        }
54 
55        /**
56         * @generated
57         */
58        public IFigure createFigure() {
59                ResizableCompartmentFigure result = (ResizableCompartmentFigure) super
60                                .createFigure();
61                result.setTitleVisibility(false);
62                return result;
63        }
64 
65        /**
66         * @generated
67         */
68        protected void createDefaultEditPolicies() {
69                super.createDefaultEditPolicies();
70                installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE,
71                                new ResizableCompartmentEditPolicy());
72                installEditPolicy(
73                                EditPolicyRoles.SEMANTIC_ROLE,
74                                new InternalActionInfrastructureCallsCompartmentItemSemanticEditPolicy());
75                installEditPolicy(EditPolicyRoles.CREATION_ROLE,
76                                new CreationEditPolicy());
77                installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE,
78                                new DragDropEditPolicy());
79                installEditPolicy(
80                                EditPolicyRoles.CANONICAL_ROLE,
81                                new InternalActionInfrastructureCallsCompartmentCanonicalEditPolicy());
82        }
83 
84        /**
85         * @generated
86         */
87        protected void setRatio(Double ratio) {
88                if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
89                        super.setRatio(ratio);
90                }
91        }
92 
93}

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