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

COVERAGE SUMMARY FOR SOURCE FILE [ScenarioBehaviourScenarioBehaviourStepsCompartmentEditPart.java]

nameclass, %method, %block, %line, %
ScenarioBehaviourScenarioBehaviourStepsCompartmentEditPart.java0%   (0/1)0%   (0/5)0%   (0/52)0%   (0/22)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ScenarioBehaviourScenarioBehaviourStepsCompartmentEditPart0%   (0/1)0%   (0/5)0%   (0/52)0%   (0/22)
ScenarioBehaviourScenarioBehaviourStepsCompartmentEditPart (View): void 0%   (0/1)0%   (0/4)0%   (0/2)
createDefaultEditPolicies (): void 0%   (0/1)0%   (0/27)0%   (0/12)
createFigure (): IFigure 0%   (0/1)0%   (0/9)0%   (0/4)
getCompartmentName (): String 0%   (0/1)0%   (0/2)0%   (0/1)
setRatio (Double): void 0%   (0/1)0%   (0/10)0%   (0/3)

1/*
2 * Copyright 2007, SDQ, IPD, University of Karlsruhe
3 */
4package de.uka.ipd.sdq.pcm.gmf.usage.edit.parts;
5 
6import org.eclipse.draw2d.IFigure;
7import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
8import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
9import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
10import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
11import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
12import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
13import org.eclipse.gmf.runtime.notation.View;
14 
15import de.uka.ipd.sdq.pcm.gmf.usage.edit.policies.ScenarioBehaviourScenarioBehaviourStepsCompartmentCanonicalEditPolicy;
16import de.uka.ipd.sdq.pcm.gmf.usage.edit.policies.ScenarioBehaviourScenarioBehaviourStepsCompartmentItemSemanticEditPolicy;
17import de.uka.ipd.sdq.pcm.gmf.usage.part.Messages;
18 
19/**
20 * @generated
21 */
22public class ScenarioBehaviourScenarioBehaviourStepsCompartmentEditPart extends
23                ShapeCompartmentEditPart {
24 
25        /**
26         * @generated
27         */
28        public static final int VISUAL_ID = 7013;
29 
30        /**
31         * @generated
32         */
33        public ScenarioBehaviourScenarioBehaviourStepsCompartmentEditPart(View view) {
34                super(view);
35        }
36 
37        /**
38         * @generated
39         */
40        public String getCompartmentName() {
41                return Messages.ScenarioBehaviourScenarioBehaviourStepsCompartmentEditPart_title;
42        }
43 
44        /**
45         * @generated
46         */
47        public IFigure createFigure() {
48                ResizableCompartmentFigure result = (ResizableCompartmentFigure) super
49                                .createFigure();
50                result.setTitleVisibility(false);
51                return result;
52        }
53 
54        /**
55         * @generated
56         */
57        protected void createDefaultEditPolicies() {
58                super.createDefaultEditPolicies();
59                installEditPolicy(
60                                EditPolicyRoles.SEMANTIC_ROLE,
61                                new ScenarioBehaviourScenarioBehaviourStepsCompartmentItemSemanticEditPolicy());
62                installEditPolicy(EditPolicyRoles.CREATION_ROLE,
63                                new CreationEditPolicy());
64                installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE,
65                                new DragDropEditPolicy());
66                installEditPolicy(
67                                EditPolicyRoles.CANONICAL_ROLE,
68                                new ScenarioBehaviourScenarioBehaviourStepsCompartmentCanonicalEditPolicy());
69        }
70 
71        /**
72         * @generated
73         */
74        protected void setRatio(Double ratio) {
75                if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
76                        super.setRatio(ratio);
77                }
78        }
79 
80}

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