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

COVERAGE SUMMARY FOR SOURCE FILE [InnerDeclarationItemProviderAdapterFactory.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class InnerDeclarationItemProviderAdapterFactory0%   (0/1)0%   (0/3)0%   (0/44)0%   (0/14)
InnerDeclarationItemProviderAdapterFactory (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.datatype;
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 
11public class InnerDeclarationItemProviderAdapterFactory extends
12                DecoratorAdapterFactory {
13 
14        public InnerDeclarationItemProviderAdapterFactory(AdapterFactory decoratedAdapterFactory) {
15                super(decoratedAdapterFactory);
16        }
17 
18        /* (non-Javadoc)
19         * @see org.eclipse.emf.edit.provider.DecoratorAdapterFactory#createItemProviderDecorator(java.lang.Object, java.lang.Object)
20         */
21        @Override
22        protected IItemProviderDecorator createItemProviderDecorator(Object target,
23                        Object type) {
24                IItemProviderDecorator decorator = new InnerDeclarationItemProvider(this);
25                if (type == ITableItemLabelProvider.class) {
26                        decorator
27                                        .setDecoratedItemProvider((IChangeNotifier) decoratedAdapterFactory
28                                                        .adapt(target, IItemLabelProvider.class));
29                } else {
30                        decorator
31                                        .setDecoratedItemProvider((IChangeNotifier) decoratedAdapterFactory
32                                                        .adapt(target, type));
33                }
34                return decorator;
35        }
36        
37        @Override
38        public Object adapt(Object target, Object type) {
39                if (type == ITableItemLabelProvider.class)
40                        return createItemProviderDecorator(target, type);
41                return super.adapt(target, type);
42        }
43 
44}

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