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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentEditPart0%   (0/1)0%   (0/5)0%   (0/52)0%   (0/22)
ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentEditPart (V... 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, Uni Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.composite.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.composite.edit.policies.ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentCanonicalEditPolicy;
16import de.uka.ipd.sdq.pcm.gmf.composite.edit.policies.ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentItemSemanticEditPolicy;
17import de.uka.ipd.sdq.pcm.gmf.composite.part.Messages;
18 
19/**
20 * @generated
21 */
22public class ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentEditPart
23                extends ShapeCompartmentEditPart {
24 
25        /**
26         * @generated
27         */
28        public static final int VISUAL_ID = 7002;
29 
30        /**
31         * @generated
32         */
33        public ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentEditPart(
34                        View view) {
35                super(view);
36        }
37 
38        /**
39         * @generated
40         */
41        public String getCompartmentName() {
42                return Messages.ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentEditPart_title;
43        }
44 
45        /**
46         * @generated
47         */
48        public IFigure createFigure() {
49                ResizableCompartmentFigure result = (ResizableCompartmentFigure) super
50                                .createFigure();
51                result.setTitleVisibility(false);
52                return result;
53        }
54 
55        /**
56         * @generated
57         */
58        protected void createDefaultEditPolicies() {
59                super.createDefaultEditPolicies();
60                installEditPolicy(
61                                EditPolicyRoles.SEMANTIC_ROLE,
62                                new ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentItemSemanticEditPolicy());
63                installEditPolicy(EditPolicyRoles.CREATION_ROLE,
64                                new CreationEditPolicy());
65                installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE,
66                                new DragDropEditPolicy());
67                installEditPolicy(
68                                EditPolicyRoles.CANONICAL_ROLE,
69                                new ComposedProvidingRequiringEntityCompositeStructureInnerCompartmentCanonicalEditPolicy());
70        }
71 
72        /**
73         * @generated
74         */
75        protected void setRatio(Double ratio) {
76                if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
77                        super.setRatio(ratio);
78                }
79        }
80 
81}

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