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

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelIconProvider.java]

nameclass, %method, %block, %line, %
PalladioComponentModelIconProvider.java0%   (0/1)0%   (0/3)0%   (0/20)0%   (0/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelIconProvider0%   (0/1)0%   (0/3)0%   (0/20)0%   (0/5)
PalladioComponentModelIconProvider (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getIcon (IAdaptable, int): Image 0%   (0/1)0%   (0/3)0%   (0/1)
provides (IOperation): boolean 0%   (0/1)0%   (0/14)0%   (0/3)

1/*
2 * Copyright 2009, SDQ, IPD, Uni Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.resource.providers;
5 
6import org.eclipse.core.runtime.IAdaptable;
7import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
8import org.eclipse.gmf.runtime.common.core.service.IOperation;
9import org.eclipse.gmf.runtime.common.ui.services.icon.GetIconOperation;
10import org.eclipse.gmf.runtime.common.ui.services.icon.IIconProvider;
11import org.eclipse.swt.graphics.Image;
12 
13/**
14 * @generated
15 */
16public class PalladioComponentModelIconProvider extends AbstractProvider
17                implements IIconProvider {
18 
19        /**
20         * @generated
21         */
22        public Image getIcon(IAdaptable hint, int flags) {
23                return PalladioComponentModelElementTypes.getImage(hint);
24        }
25 
26        /**
27         * @generated
28         */
29        public boolean provides(IOperation operation) {
30                if (operation instanceof GetIconOperation) {
31                        return ((GetIconOperation) operation).execute(this) != null;
32                }
33                return false;
34        }
35}

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