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

COVERAGE SUMMARY FOR SOURCE FILE [CategoryAwareItemProviderAdapterFactory.java]

nameclass, %method, %block, %line, %
CategoryAwareItemProviderAdapterFactory.java0%   (0/1)0%   (0/2)0%   (0/14)0%   (0/4)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CategoryAwareItemProviderAdapterFactory0%   (0/1)0%   (0/2)0%   (0/14)0%   (0/4)
CategoryAwareItemProviderAdapterFactory (AdapterFactory, ICategoryDescription... 0%   (0/1)0%   (0/7)0%   (0/3)
createItemProviderDecorator (Object, Object): IItemProviderDecorator 0%   (0/1)0%   (0/7)0%   (0/1)

1package de.uka.ipd.sdq.pcmbench.ui.provider.categoryaware;
2 
3 
4import org.eclipse.emf.common.notify.AdapterFactory;
5import org.eclipse.emf.edit.provider.DecoratorAdapterFactory;
6import org.eclipse.emf.edit.provider.IChangeNotifier;
7import org.eclipse.emf.edit.provider.IItemProviderDecorator;
8 
9/**
10 * @author Snowball
11 * An adapter factory which creates ItemProviders which are able to display their
12 * model objects using categories. The categories are passed to the factory in order to
13 * configure it.
14 */
15public class CategoryAwareItemProviderAdapterFactory 
16extends DecoratorAdapterFactory 
17implements AdapterFactory,
18                IChangeNotifier {
19 
20        private ICategoryDescriptions categories;
21 
22        public CategoryAwareItemProviderAdapterFactory(AdapterFactory decoratedAdapterFactory, ICategoryDescriptions categories) {
23                super(decoratedAdapterFactory);
24                this.categories = categories;
25        }
26 
27        @Override
28        protected IItemProviderDecorator createItemProviderDecorator(Object target, Object Type) {
29                return new CategoryAwareItemProvider(this, categories);
30        }
31 
32}

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