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

COVERAGE SUMMARY FOR SOURCE FILE [DatasourceListContentProvider.java]

nameclass, %method, %block, %line, %
DatasourceListContentProvider.java0%   (0/1)0%   (0/4)0%   (0/16)0%   (0/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DatasourceListContentProvider0%   (0/1)0%   (0/4)0%   (0/16)0%   (0/7)
DatasourceListContentProvider (): void 0%   (0/1)0%   (0/3)0%   (0/1)
dispose (): void 0%   (0/1)0%   (0/1)0%   (0/1)
getElements (Object): Object [] 0%   (0/1)0%   (0/11)0%   (0/4)
inputChanged (Viewer, Object, Object): void 0%   (0/1)0%   (0/1)0%   (0/1)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.sensorframework.dialogs.dataset;
5 
6import java.util.Collection;
7 
8import org.eclipse.jface.viewers.IStructuredContentProvider;
9import org.eclipse.jface.viewers.Viewer;
10 
11public class DatasourceListContentProvider implements IStructuredContentProvider {
12 
13        /* (non-Javadoc)
14         * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
15         */
16        public Object[] getElements(Object inputElement) {
17                if (inputElement instanceof Collection<?>) {
18                        Collection<?> sources = (Collection<?>) inputElement;
19                        return sources.toArray();
20                }
21                return null;
22        }
23 
24        /* (non-Javadoc)
25         * @see org.eclipse.jface.viewers.IContentProvider#dispose()
26         */
27        public void dispose() {
28                // TODO Auto-generated method stub
29 
30        }
31 
32        /* (non-Javadoc)
33         * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
34         */
35        public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
36                // TODO Auto-generated method stub
37 
38        }
39 
40}

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