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

COVERAGE SUMMARY FOR SOURCE FILE [ProvidedRoleEntityNameViewFactory.java]

nameclass, %method, %block, %line, %
ProvidedRoleEntityNameViewFactory.java0%   (0/1)0%   (0/3)0%   (0/40)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProvidedRoleEntityNameViewFactory0%   (0/1)0%   (0/3)0%   (0/40)0%   (0/11)
ProvidedRoleEntityNameViewFactory (): void 0%   (0/1)0%   (0/3)0%   (0/1)
createStyles (View): List 0%   (0/1)0%   (0/6)0%   (0/2)
createView (IAdaptable, View, String, int, boolean, PreferencesHint): View 0%   (0/1)0%   (0/31)0%   (0/8)

1/*
2 *Copyright 2007, SDQ, IPD, Uni Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.composite.view.factories;
5 
6import java.util.ArrayList;
7import java.util.List;
8import org.eclipse.core.runtime.IAdaptable;
9import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
10import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
11import org.eclipse.gmf.runtime.notation.Node;
12import org.eclipse.gmf.runtime.notation.View;
13import org.eclipse.gmf.runtime.diagram.ui.util.MeasurementUnitHelper;
14 
15import org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode;
16 
17import org.eclipse.gmf.runtime.notation.Location;
18 
19/**
20 * @generated
21 */
22public class ProvidedRoleEntityNameViewFactory extends AbstractLabelViewFactory {
23 
24        /**
25         * @generated
26         */
27        public View createView(IAdaptable semanticAdapter, View containerView,
28                        String semanticHint, int index, boolean persisted,
29                        PreferencesHint preferencesHint) {
30                Node view = (Node) super.createView(semanticAdapter, containerView,
31                                semanticHint, index, persisted, preferencesHint);
32                Location location = (Location) view.getLayoutConstraint();
33                IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView
34                                .getDiagram().getMeasurementUnit());
35                location.setX(mapMode.DPtoLP(0));
36                location.setY(mapMode.DPtoLP(5));
37                return view;
38        }
39 
40        /**
41         * @generated
42         */
43        protected List createStyles(View view) {
44                List styles = new ArrayList();
45                return styles;
46        }
47}

[all classes][de.uka.ipd.sdq.pcm.gmf.composite.view.factories]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov