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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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