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

COVERAGE SUMMARY FOR SOURCE FILE [VariableUsageItemProviderAdapterFactory.java]

nameclass, %method, %block, %line, %
VariableUsageItemProviderAdapterFactory.java0%   (0/1)0%   (0/2)0%   (0/31)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class VariableUsageItemProviderAdapterFactory0%   (0/1)0%   (0/2)0%   (0/31)0%   (0/11)
VariableUsageItemProviderAdapterFactory (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
createItemProviderDecorator (Object, Object): IItemProviderDecorator 0%   (0/1)0%   (0/27)0%   (0/9)

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

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