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

COVERAGE SUMMARY FOR SOURCE FILE [ExceptionsItemProviderAdapterFactory.java]

nameclass, %method, %block, %line, %
ExceptionsItemProviderAdapterFactory.java0%   (0/1)0%   (0/3)0%   (0/44)0%   (0/14)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ExceptionsItemProviderAdapterFactory0%   (0/1)0%   (0/3)0%   (0/44)0%   (0/14)
ExceptionsItemProviderAdapterFactory (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
adapt (Object, Object): Object 0%   (0/1)0%   (0/13)0%   (0/3)
createItemProviderDecorator (Object, Object): IItemProviderDecorator 0%   (0/1)0%   (0/27)0%   (0/9)

1package de.uka.ipd.sdq.pcm.dialogs.exception;
2 
3import org.eclipse.emf.common.notify.AdapterFactory;
4import org.eclipse.emf.edit.provider.DecoratorAdapterFactory;
5import org.eclipse.emf.edit.provider.IChangeNotifier;
6import org.eclipse.emf.edit.provider.IItemLabelProvider;
7import org.eclipse.emf.edit.provider.IItemProviderDecorator;
8import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
9 
10 
11 
12public class ExceptionsItemProviderAdapterFactory extends
13                DecoratorAdapterFactory {
14 
15        public ExceptionsItemProviderAdapterFactory(AdapterFactory decoratedAdapterFactory) {
16                super(decoratedAdapterFactory);
17        }
18        
19        @Override
20        protected IItemProviderDecorator createItemProviderDecorator(Object target,
21                        Object type) {
22                IItemProviderDecorator decorator = new ExceptionsItemProvider(this);
23                if (type == ITableItemLabelProvider.class) {
24                        decorator
25                                        .setDecoratedItemProvider((IChangeNotifier) decoratedAdapterFactory
26                                                        .adapt(target, IItemLabelProvider.class));
27                } else {
28                        decorator
29                                        .setDecoratedItemProvider((IChangeNotifier) decoratedAdapterFactory
30                                                        .adapt(target, type));
31                }
32                return decorator;
33        }
34 
35        @Override
36        public Object adapt(Object target, Object type) {
37                if (type == ITableItemLabelProvider.class)
38                        return createItemProviderDecorator(target, type);
39                return super.adapt(target, type);
40        }
41}

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