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

COVERAGE SUMMARY FOR SOURCE FILE [FeatureModelInstancePlugin.java]

nameclass, %method, %block, %line, %
FeatureModelInstancePlugin.java0%   (0/1)0%   (0/3)0%   (0/33)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FeatureModelInstancePlugin0%   (0/1)0%   (0/3)0%   (0/33)0%   (0/10)
FeatureModelInstancePlugin (): void 0%   (0/1)0%   (0/5)0%   (0/3)
getImageDescriptor (String): ImageDescriptor 0%   (0/1)0%   (0/26)0%   (0/6)
getWorkspace (): IWorkspace 0%   (0/1)0%   (0/2)0%   (0/1)

1package de.uka.ipd.sdq.featureinstance;
2 
3import java.net.MalformedURLException;
4import java.net.URL;
5 
6import org.eclipse.core.resources.IWorkspace;
7import org.eclipse.core.resources.ResourcesPlugin;
8import org.eclipse.core.runtime.Platform;
9import org.eclipse.jface.resource.ImageDescriptor;
10import org.eclipse.ui.plugin.AbstractUIPlugin;
11 
12public class FeatureModelInstancePlugin extends AbstractUIPlugin {
13        //The shared instance.
14        private static FeatureModelInstancePlugin plugin;
15        
16        /**
17         * The constructor.
18         */
19        public FeatureModelInstancePlugin() {
20                super();
21                plugin = this;
22        }
23 
24        /*/**
25         * Returns the shared instance.
26         
27        public static FeatureModelInstancePlugin getDefault() {
28                return plugin;
29        }*/
30 
31        /**
32         * Returns the workspace instance.
33         */
34        public static IWorkspace getWorkspace() {
35                return ResourcesPlugin.getWorkspace();
36        }
37        
38        public static ImageDescriptor getImageDescriptor(String name) {
39                String iconPath = "icons/";
40                try {
41                        URL installURL = Platform.getBundle("de.uka.ipd.sdq.featureinstance.editor").getEntry("/");
42                        URL url = new URL(installURL, iconPath + name);
43                        return ImageDescriptor.createFromURL(url);
44                } catch (MalformedURLException e) {
45                        return ImageDescriptor.getMissingImageDescriptor();
46                }
47        }
48}

[all classes][de.uka.ipd.sdq.featureinstance]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov