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

nameclass, %method, %block, %line, %
ProcessingResourceSpecificationProcessingResourceSpecificationCompartmentEditPart.java0%   (0/1)0%   (0/6)0%   (0/39)0%   (0/17)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProcessingResourceSpecificationProcessingResourceSpecificationCompartmentEditPart0%   (0/1)0%   (0/6)0%   (0/39)0%   (0/17)
ProcessingResourceSpecificationProcessingResourceSpecificationCompartmentEdit... 0%   (0/1)0%   (0/4)0%   (0/2)
createDefaultEditPolicies (): void 0%   (0/1)0%   (0/9)0%   (0/5)
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.EditPolicyRoles;
10import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
11import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
12import org.eclipse.gmf.runtime.notation.View;
13 
14import de.uka.ipd.sdq.pcm.gmf.resource.edit.policies.ProcessingResourceSpecificationProcessingResourceSpecificationCompartmentItemSemanticEditPolicy;
15import de.uka.ipd.sdq.pcm.gmf.resource.part.Messages;
16 
17/**
18 * @generated
19 */
20public class ProcessingResourceSpecificationProcessingResourceSpecificationCompartmentEditPart
21                extends ListCompartmentEditPart {
22 
23        /**
24         * @generated
25         */
26        public static final int VISUAL_ID = 7002;
27 
28        /**
29         * @generated
30         */
31        public ProcessingResourceSpecificationProcessingResourceSpecificationCompartmentEditPart(
32                        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.ProcessingResourceSpecificationProcessingResourceSpecificationCompartmentEditPart_title;
48        }
49 
50        /**
51         * @generated NOT
52         */
53        public IFigure createFigure() {
54                ResizableCompartmentFigure result = (ResizableCompartmentFigure) super
55                                .createFigure();
56                result.setTitleVisibility(false);
57                result.setBorder(null); // custom code
58                return result;
59        }
60 
61        /**
62         * @generated
63         */
64        protected void createDefaultEditPolicies() {
65                super.createDefaultEditPolicies();
66                installEditPolicy(
67                                EditPolicyRoles.SEMANTIC_ROLE,
68                                new ProcessingResourceSpecificationProcessingResourceSpecificationCompartmentItemSemanticEditPolicy());
69        }
70 
71        /**
72         * @generated
73         */
74        protected void setRatio(Double ratio) {
75                if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
76                        super.setRatio(ratio);
77                }
78        }
79 
80}

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