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

COVERAGE SUMMARY FOR SOURCE FILE [ResourceContainerResourceContainerCompartmentEditPart.java]

nameclass, %method, %block, %line, %
ResourceContainerResourceContainerCompartmentEditPart.java0%   (0/1)0%   (0/6)0%   (0/57)0%   (0/24)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ResourceContainerResourceContainerCompartmentEditPart0%   (0/1)0%   (0/6)0%   (0/57)0%   (0/24)
ResourceContainerResourceContainerCompartmentEditPart (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/12)0%   (0/5)
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 2009, SDQ, IPD, Uni Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.resource.edit.parts;
5 
6import org.eclipse.draw2d.IFigure;
7import org.eclipse.emf.common.notify.Notification;
8import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
9import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
10import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
11import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
12import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
13import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
14import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
15import org.eclipse.gmf.runtime.notation.View;
16 
17import de.uka.ipd.sdq.pcm.gmf.resource.edit.policies.ResourceContainerResourceContainerCompartmentCanonicalEditPolicy;
18import de.uka.ipd.sdq.pcm.gmf.resource.edit.policies.ResourceContainerResourceContainerCompartmentItemSemanticEditPolicy;
19import de.uka.ipd.sdq.pcm.gmf.resource.part.Messages;
20 
21/**
22 * @generated
23 */
24public class ResourceContainerResourceContainerCompartmentEditPart extends
25                ListCompartmentEditPart {
26 
27        /**
28         * @generated
29         */
30        public static final int VISUAL_ID = 7001;
31 
32        /**
33         * @generated
34         */
35        public ResourceContainerResourceContainerCompartmentEditPart(View view) {
36                super(view);
37        }
38 
39        /**
40         * @generated
41         */
42        protected boolean hasModelChildrenChanged(Notification evt) {
43                return false;
44        }
45 
46        /**
47         * @generated
48         */
49        public String getCompartmentName() {
50                return Messages.ResourceContainerResourceContainerCompartmentEditPart_title;
51        }
52 
53        /**
54         * @generated NOT
55         */
56        public IFigure createFigure() {
57                ResizableCompartmentFigure result = (ResizableCompartmentFigure) super
58                                .createFigure();
59                result.setTitleVisibility(false);
60                result.setBorder(null); // custom code
61                return result;
62        }
63 
64        /**
65         * @generated
66         */
67        protected void createDefaultEditPolicies() {
68                super.createDefaultEditPolicies();
69                installEditPolicy(
70                                EditPolicyRoles.SEMANTIC_ROLE,
71                                new ResourceContainerResourceContainerCompartmentItemSemanticEditPolicy());
72                installEditPolicy(EditPolicyRoles.CREATION_ROLE,
73                                new CreationEditPolicy());
74                installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE,
75                                new DragDropEditPolicy());
76                installEditPolicy(
77                                EditPolicyRoles.CANONICAL_ROLE,
78                                new ResourceContainerResourceContainerCompartmentCanonicalEditPolicy());
79        }
80 
81        /**
82         * @generated
83         */
84        protected void setRatio(Double ratio) {
85                if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
86                        super.setRatio(ratio);
87                }
88        }
89 
90}

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