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

nameclass, %method, %block, %line, %
BasicComponentSEFFCompartmentEditPart.java0%   (0/1)0%   (0/6)0%   (0/54)0%   (0/21)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class BasicComponentSEFFCompartmentEditPart0%   (0/1)0%   (0/6)0%   (0/54)0%   (0/21)
BasicComponentSEFFCompartmentEditPart (View): void 0%   (0/1)0%   (0/4)0%   (0/2)
createDefaultEditPolicies (): void 0%   (0/1)0%   (0/27)0%   (0/10)
createFigure (): IFigure 0%   (0/1)0%   (0/9)0%   (0/4)
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.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.repository.edit.policies.BasicComponentSEFFCompartmentCanonicalEditPolicy;
17import de.uka.ipd.sdq.pcm.gmf.repository.edit.policies.BasicComponentSEFFCompartmentItemSemanticEditPolicy;
18import de.uka.ipd.sdq.pcm.gmf.repository.edit.policies.OpenSeffDiagramEditPolicy;
19import de.uka.ipd.sdq.pcm.gmf.repository.part.Messages;
20 
21/**
22 * @generated
23 */
24public class BasicComponentSEFFCompartmentEditPart extends
25                ListCompartmentEditPart {
26 
27        /**
28         * @generated
29         */
30        public static final int VISUAL_ID = 7102;
31 
32        /**
33         * @generated
34         */
35        public BasicComponentSEFFCompartmentEditPart(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.BasicComponentSEFFCompartmentEditPart_title;
51        }
52 
53        /**
54         * @generated
55         */
56        public IFigure createFigure() {
57                ResizableCompartmentFigure result = (ResizableCompartmentFigure) super
58                                .createFigure();
59                result.setTitleVisibility(false);
60                return result;
61        }
62 
63        /**
64         * @generated
65         */
66        protected void createDefaultEditPolicies() {
67                super.createDefaultEditPolicies();
68                installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
69                                new BasicComponentSEFFCompartmentItemSemanticEditPolicy());
70                installEditPolicy(EditPolicyRoles.CREATION_ROLE,
71                                new CreationEditPolicy());
72                installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE,
73                                new DragDropEditPolicy());
74                installEditPolicy(EditPolicyRoles.CANONICAL_ROLE,
75                                new BasicComponentSEFFCompartmentCanonicalEditPolicy());
76        }
77 
78        /**
79         * @generated
80         */
81        protected void setRatio(Double ratio) {
82                if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
83                        super.setRatio(ratio);
84                }
85        }
86 
87}

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