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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProvidedRoleEntityName2ViewFactory0%   (0/1)0%   (0/3)0%   (0/40)0%   (0/11)
ProvidedRoleEntityName2ViewFactory (): 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 ProvidedRoleEntityName2ViewFactory extends
23                AbstractLabelViewFactory {
24 
25        /**
26         * @generated
27         */
28        public View createView(IAdaptable semanticAdapter, View containerView,
29                        String semanticHint, int index, boolean persisted,
30                        PreferencesHint preferencesHint) {
31                Node view = (Node) super.createView(semanticAdapter, containerView,
32                                semanticHint, index, persisted, preferencesHint);
33                Location location = (Location) view.getLayoutConstraint();
34                IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView
35                                .getDiagram().getMeasurementUnit());
36                location.setX(mapMode.DPtoLP(0));
37                location.setY(mapMode.DPtoLP(5));
38                return view;
39        }
40 
41        /**
42         * @generated
43         */
44        protected List createStyles(View view) {
45                List styles = new ArrayList();
46                return styles;
47        }
48}

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