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

COVERAGE SUMMARY FOR SOURCE FILE [BasicComponentPassiveResourceCompartmentEditPart.java]

nameclass, %method, %block, %line, %
BasicComponentPassiveResourceCompartmentEditPart.java0%   (0/1)0%   (0/5)0%   (0/45)0%   (0/19)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class BasicComponentPassiveResourceCompartmentEditPart0%   (0/1)0%   (0/5)0%   (0/45)0%   (0/19)
BasicComponentPassiveResourceCompartmentEditPart (View): void 0%   (0/1)0%   (0/4)0%   (0/2)
createDefaultEditPolicies (): void 0%   (0/1)0%   (0/27)0%   (0/12)
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 2007, IPD, SDQ, University of Karlsruhe
3 */
4package de.uka.ipd.sdq.pcm.gmf.repository.edit.parts;
5 
6import org.eclipse.emf.common.notify.Notification;
7import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
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.draw2d.ui.figures.ConstrainedToolbarLayout;
12import org.eclipse.gmf.runtime.notation.View;
13 
14import de.uka.ipd.sdq.pcm.gmf.repository.edit.policies.BasicComponentPassiveResourceCompartmentCanonicalEditPolicy;
15import de.uka.ipd.sdq.pcm.gmf.repository.edit.policies.BasicComponentPassiveResourceCompartmentItemSemanticEditPolicy;
16import de.uka.ipd.sdq.pcm.gmf.repository.part.Messages;
17 
18/**
19 * @generated
20 */
21public class BasicComponentPassiveResourceCompartmentEditPart extends
22                ListCompartmentEditPart {
23 
24        /**
25         * @generated
26         */
27        public static final int VISUAL_ID = 7103;
28 
29        /**
30         * @generated
31         */
32        public BasicComponentPassiveResourceCompartmentEditPart(View view) {
33                super(view);
34        }
35 
36        /**
37         * @generated
38         */
39        protected boolean hasModelChildrenChanged(Notification evt) {
40                return false;
41        }
42 
43        /**
44         * @generated
45         */
46        public String getCompartmentName() {
47                return Messages.BasicComponentPassiveResourceCompartmentEditPart_title;
48        }
49 
50        /**
51         * @generated
52         */
53        protected void createDefaultEditPolicies() {
54                super.createDefaultEditPolicies();
55                installEditPolicy(
56                                EditPolicyRoles.SEMANTIC_ROLE,
57                                new BasicComponentPassiveResourceCompartmentItemSemanticEditPolicy());
58                installEditPolicy(EditPolicyRoles.CREATION_ROLE,
59                                new CreationEditPolicy());
60                installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE,
61                                new DragDropEditPolicy());
62                installEditPolicy(
63                                EditPolicyRoles.CANONICAL_ROLE,
64                                new BasicComponentPassiveResourceCompartmentCanonicalEditPolicy());
65        }
66 
67        /**
68         * @generated
69         */
70        protected void setRatio(Double ratio) {
71                if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
72                        super.setRatio(ratio);
73                }
74        }
75 
76}

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