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

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelPaletteFactory.java]

nameclass, %method, %block, %line, %
PalladioComponentModelPaletteFactory.java0%   (0/2)0%   (0/7)0%   (0/74)0%   (0/24)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelPaletteFactory0%   (0/1)0%   (0/4)0%   (0/46)0%   (0/17)
PalladioComponentModelPaletteFactory (): void 0%   (0/1)0%   (0/3)0%   (0/1)
createAllocationContext1CreationTool (): ToolEntry 0%   (0/1)0%   (0/27)0%   (0/10)
createPcm1Group (): PaletteContainer 0%   (0/1)0%   (0/11)0%   (0/4)
fillPalette (PaletteRoot): void 0%   (0/1)0%   (0/5)0%   (0/2)
     
class PalladioComponentModelPaletteFactory$NodeToolEntry0%   (0/1)0%   (0/3)0%   (0/28)0%   (0/7)
PalladioComponentModelPaletteFactory$NodeToolEntry (String, String, List): void 0%   (0/1)0%   (0/10)0%   (0/3)
PalladioComponentModelPaletteFactory$NodeToolEntry (String, String, List, Pal... 0%   (0/1)0%   (0/6)0%   (0/1)
createTool (): Tool 0%   (0/1)0%   (0/12)0%   (0/3)

1/*
2 * Copyright 2007, SDQ, IPD, U KA
3 */
4package de.uka.ipd.sdq.pcm.gmf.allocation.part;
5 
6import java.util.ArrayList;
7import java.util.List;
8 
9import org.eclipse.gef.Tool;
10import org.eclipse.gef.palette.PaletteContainer;
11import org.eclipse.gef.palette.PaletteGroup;
12import org.eclipse.gef.palette.PaletteRoot;
13import org.eclipse.gef.palette.ToolEntry;
14import org.eclipse.gmf.runtime.diagram.ui.tools.UnspecifiedTypeCreationTool;
15 
16import de.uka.ipd.sdq.pcm.gmf.allocation.providers.PalladioComponentModelElementTypes;
17 
18/**
19 * @generated
20 */
21public class PalladioComponentModelPaletteFactory {
22 
23        /**
24         * @generated
25         */
26        public void fillPalette(PaletteRoot paletteRoot) {
27                paletteRoot.add(createPcm1Group());
28        }
29 
30        /**
31         * Creates "pcm" palette tool group
32         * @generated
33         */
34        private PaletteContainer createPcm1Group() {
35                PaletteGroup paletteContainer = new PaletteGroup(
36                                Messages.Pcm1Group_title);
37                paletteContainer.add(createAllocationContext1CreationTool());
38                return paletteContainer;
39        }
40 
41        /**
42         * @generated
43         */
44        private ToolEntry createAllocationContext1CreationTool() {
45                List/*<IElementType>*/types = new ArrayList/*<IElementType>*/(1);
46                types.add(PalladioComponentModelElementTypes.AllocationContext_3001);
47                NodeToolEntry entry = new NodeToolEntry(
48                                Messages.AllocationContext1CreationTool_title,
49                                Messages.AllocationContext1CreationTool_desc, types);
50                entry
51                                .setSmallIcon(PalladioComponentModelElementTypes
52                                                .getImageDescriptor(PalladioComponentModelElementTypes.AllocationContext_3001));
53                entry.setLargeIcon(entry.getSmallIcon());
54                return entry;
55        }
56 
57        /**
58         * @generated
59         */
60        private static class NodeToolEntry extends ToolEntry {
61 
62                /**
63                 * @generated
64                 */
65                private final List elementTypes;
66 
67                /**
68                 * @generated
69                 */
70                private NodeToolEntry(String title, String description,
71                                List elementTypes) {
72                        super(title, description, null, null);
73                        this.elementTypes = elementTypes;
74                }
75 
76                /**
77                 * @generated
78                 */
79                public Tool createTool() {
80                        Tool tool = new UnspecifiedTypeCreationTool(elementTypes);
81                        tool.setProperties(getToolProperties());
82                        return tool;
83                }
84        }
85}

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