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

COVERAGE SUMMARY FOR SOURCE FILE [PalladioItemProviderAdapterFactory.java]

nameclass, %method, %block, %line, %
PalladioItemProviderAdapterFactory.java0%   (0/1)0%   (0/4)0%   (0/27)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioItemProviderAdapterFactory0%   (0/1)0%   (0/4)0%   (0/27)0%   (0/10)
PalladioItemProviderAdapterFactory (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
createItemProviderDecorator (Object, Object): IItemProviderDecorator 0%   (0/1)0%   (0/17)0%   (0/5)
getRootAdapterFactory (): ComposeableAdapterFactory 0%   (0/1)0%   (0/2)0%   (0/1)
notifyChanged (Notification): void 0%   (0/1)0%   (0/4)0%   (0/2)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.pcmbench.ui.provider;
5 
6import org.eclipse.emf.common.notify.AdapterFactory;
7import org.eclipse.emf.common.notify.Notification;
8import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
9import org.eclipse.emf.edit.provider.DecoratorAdapterFactory;
10import org.eclipse.emf.edit.provider.IItemProviderDecorator;
11import org.eclipse.emf.edit.provider.INotifyChangedListener;
12 
13 
14/**
15 * @author Snowball
16 * This factory generates the default ItemProvider adapter which can be used 
17 * to display elements in Palladio related GUI elements, e.g., trees or list boxes 
18 *
19 */
20public class PalladioItemProviderAdapterFactory 
21        extends DecoratorAdapterFactory 
22        implements INotifyChangedListener, ComposeableAdapterFactory
23{
24 
25        /**
26         * @param decoratedAdapterFactory The factory which gets decorated
27         */
28        public PalladioItemProviderAdapterFactory(
29                        AdapterFactory decoratedAdapterFactory) {
30                super(decoratedAdapterFactory);
31        }
32 
33        /* (non-Javadoc)
34         * @see org.eclipse.emf.edit.provider.DecoratorAdapterFactory#createItemProviderDecorator(java.lang.Object, java.lang.Object)
35         */
36        @Override
37        protected IItemProviderDecorator createItemProviderDecorator(Object target,
38                        Object Type) {
39                PalladioItemProvider result = new PalladioItemProvider(this);
40                if (((Class)Type).isInstance(result)) {
41                        result.addListener(this);
42                        return result;
43                }
44                return null;
45        }
46 
47        public void notifyChanged(Notification notification) {
48                fireNotifyChanged(notification);
49        }
50 
51        /* (non-Javadoc)
52         * @see org.eclipse.emf.edit.provider.DecoratorAdapterFactory#getRootAdapterFactory()
53         */
54        @Override
55        public ComposeableAdapterFactory getRootAdapterFactory() {
56                return this;
57        }
58 
59}

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