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

COVERAGE SUMMARY FOR SOURCE FILE [VisualisationImages.java]

nameclass, %method, %block, %line, %
VisualisationImages.java0%   (0/1)0%   (0/3)0%   (0/181)0%   (0/28)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class VisualisationImages0%   (0/1)0%   (0/3)0%   (0/181)0%   (0/28)
<static initializer> 0%   (0/1)0%   (0/175)0%   (0/27)
VisualisationImages (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getImageDescriptor (String): ImageDescriptor 0%   (0/1)0%   (0/3)0%   (0/1)

1package de.uka.ipd.sdq.sensorframework.visualisation;
2 
3import org.eclipse.jface.resource.ImageDescriptor;
4import org.eclipse.jface.resource.ImageRegistry;
5 
6 
7public class VisualisationImages {
8 
9        public static final String RUN = "lrun_obj";
10        public static final String SENSOR = "sensor_obj";
11        public static final String EXPERIMENT = "experiment_obj";
12        public static final String SENSORS = "sensor_folder";
13        public static final String RUNS = "run_folder";
14        public static final String TREEROOT = "tree_root";
15        public static final String DELETE = "delete_obj";
16        public static final String ADD = "add_obj";
17        public static final String UP = "up_obj";
18        public static final String DOWN = "down_obj";
19        
20        // Names of images used to represent checkboxes
21        public static final String CHECKED_IMAGE         = "checked";
22        public static final String UNCHECKED_IMAGE  = "unchecked";
23 
24        // For the toolbar images
25        public static ImageRegistry imageRegistry = new ImageRegistry();
26 
27        
28        /**
29         * Note: An image registry owns all of the image objects registered with it,
30         * and automatically disposes of them the SWT Display is disposed.
31         */ 
32 
33        static {
34                String iconPath = "icons/";
35                
36                imageRegistry.put(RUN,
37                                 getImageDescriptor(iconPath + RUN + ".gif")
38                );
39                imageRegistry.put(SENSOR,
40                                 getImageDescriptor(iconPath + SENSOR + ".gif")
41                                );
42                imageRegistry.put(SENSORS,
43                                 getImageDescriptor(iconPath + SENSORS + ".gif")
44                                );
45                imageRegistry.put(RUNS,
46                                 getImageDescriptor(iconPath + RUNS + ".gif")
47                                );
48                imageRegistry.put(EXPERIMENT,
49                                 getImageDescriptor(iconPath + EXPERIMENT + ".gif")
50                                );
51                imageRegistry.put(TREEROOT,
52                                 getImageDescriptor(iconPath + TREEROOT + ".gif")
53                                );
54                imageRegistry.put(CHECKED_IMAGE,
55                                getImageDescriptor(iconPath + CHECKED_IMAGE + ".gif")
56                        );
57                imageRegistry.put(UNCHECKED_IMAGE,
58                                getImageDescriptor(iconPath + UNCHECKED_IMAGE + ".gif")
59                        );
60                imageRegistry.put(DELETE,
61                                getImageDescriptor(iconPath + DELETE + ".gif")
62                        );
63                imageRegistry.put(ADD,
64                                getImageDescriptor(iconPath + ADD + ".gif")
65                        );
66                imageRegistry.put(UP,
67                                getImageDescriptor(iconPath + UP + ".gif")
68                        );
69                imageRegistry.put(DOWN,
70                                getImageDescriptor(iconPath + DOWN + ".gif")
71                        );
72        }
73        
74        /**
75         *@param imageFilePath the relative to the root of the plug-in; the path must be legal
76     *@return an image descriptor, or null if no image could be found
77         */
78        public static ImageDescriptor getImageDescriptor(String imageFilePath) {
79                return VisualisationPlugin.getImageDescriptor(imageFilePath);
80        }
81}

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