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

COVERAGE SUMMARY FOR SOURCE FILE [InfrastructureSignaturesTabItemProviderAdapterFactory.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class InfrastructureSignaturesTabItemProviderAdapterFactory0%   (0/1)0%   (0/3)0%   (0/44)0%   (0/14)
InfrastructureSignaturesTabItemProviderAdapterFactory (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.pcmbench.tabs.operations;
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 
10public class InfrastructureSignaturesTabItemProviderAdapterFactory extends
11                DecoratorAdapterFactory {
12 
13        public InfrastructureSignaturesTabItemProviderAdapterFactory(AdapterFactory adapterFactory) {
14                super(adapterFactory);
15        }
16        
17        @Override
18        protected IItemProviderDecorator createItemProviderDecorator(Object target,
19                        Object type) {
20                IItemProviderDecorator decorator = new InfrastructureSignaturesTabItemProvider(this);
21                if (type == ITableItemLabelProvider.class) {
22                        decorator
23                                        .setDecoratedItemProvider((IChangeNotifier) decoratedAdapterFactory
24                                                        .adapt(target, IItemLabelProvider.class));
25                } else {
26                        decorator
27                                        .setDecoratedItemProvider((IChangeNotifier) decoratedAdapterFactory
28                                                        .adapt(target, type));
29                }
30                return decorator;
31        }
32 
33        @Override
34        public Object adapt(Object target, Object type) {
35                if (type == ITableItemLabelProvider.class)
36                        return createItemProviderDecorator(target, type);
37                return super.adapt(target, type);
38        }
39}

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