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

nameclass, %method, %block, %line, %
AssemblyConnectorViewFactory.java0%   (0/1)0%   (0/3)0%   (0/63)0%   (0/24)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AssemblyConnectorViewFactory0%   (0/1)0%   (0/3)0%   (0/63)0%   (0/24)
AssemblyConnectorViewFactory (): void 0%   (0/1)0%   (0/3)0%   (0/1)
createStyles (View): List 0%   (0/1)0%   (0/21)0%   (0/5)
decorateView (View, View, IAdaptable, String, int, boolean): void 0%   (0/1)0%   (0/39)0%   (0/18)

1/*
2 *Copyright 2007, SDQ, IPD, Uni Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.composite.view.factories;
5 
6import de.uka.ipd.sdq.pcm.gmf.composite.edit.parts.AssemblyConnectorEditPart;
7import de.uka.ipd.sdq.pcm.gmf.composite.edit.parts.ComposedProvidingRequiringEntityEditPart;
8 
9import de.uka.ipd.sdq.pcm.gmf.composite.part.PalladioComponentModelVisualIDRegistry;
10 
11import java.util.ArrayList;
12import java.util.List;
13 
14import org.eclipse.core.runtime.IAdaptable;
15 
16import org.eclipse.emf.ecore.EAnnotation;
17import org.eclipse.emf.ecore.EcoreFactory;
18 
19import org.eclipse.gmf.runtime.diagram.ui.view.factories.ConnectionViewFactory;
20 
21import org.eclipse.gmf.runtime.notation.NotationFactory;
22import org.eclipse.gmf.runtime.notation.View;
23 
24/**
25 * @generated
26 */
27public class AssemblyConnectorViewFactory extends ConnectionViewFactory {
28 
29        /**
30         * @generated 
31         */
32        protected List createStyles(View view) {
33                List styles = new ArrayList();
34                styles.add(NotationFactory.eINSTANCE.createRoutingStyle());
35                styles.add(NotationFactory.eINSTANCE.createFontStyle());
36                styles.add(NotationFactory.eINSTANCE.createLineStyle());
37                return styles;
38        }
39 
40        /**
41         * @generated
42         */
43        protected void decorateView(View containerView, View view,
44                        IAdaptable semanticAdapter, String semanticHint, int index,
45                        boolean persisted) {
46                if (semanticHint == null) {
47                        semanticHint = PalladioComponentModelVisualIDRegistry
48                                        .getType(AssemblyConnectorEditPart.VISUAL_ID);
49                        view.setType(semanticHint);
50                }
51                super.decorateView(containerView, view, semanticAdapter, semanticHint,
52                                index, persisted);
53                if (!ComposedProvidingRequiringEntityEditPart.MODEL_ID
54                                .equals(PalladioComponentModelVisualIDRegistry
55                                                .getModelID(containerView))) {
56                        EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE
57                                        .createEAnnotation();
58                        shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
59                        shortcutAnnotation
60                                        .getDetails()
61                                        .put(
62                                                        "modelID", ComposedProvidingRequiringEntityEditPart.MODEL_ID); //$NON-NLS-1$
63                        view.getEAnnotations().add(shortcutAnnotation);
64                }
65        }
66 
67}

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