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

COVERAGE SUMMARY FOR SOURCE FILE [FeatureSubsetItemProvider.java]

nameclass, %method, %block, %line, %
FeatureSubsetItemProvider.java0%   (0/1)0%   (0/8)0%   (0/71)0%   (0/28)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FeatureSubsetItemProvider0%   (0/1)0%   (0/8)0%   (0/71)0%   (0/28)
FeatureSubsetItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addFeaturePropertyDescriptor (Object): void 0%   (0/1)0%   (0/28)0%   (0/14)
collectNewChildDescriptors (Collection, Object): void 0%   (0/1)0%   (0/5)0%   (0/2)
getImage (Object): Object 0%   (0/1)0%   (0/8)0%   (0/1)
getPropertyDescriptors (Object): List 0%   (0/1)0%   (0/13)0%   (0/4)
getResourceLocator (): ResourceLocator 0%   (0/1)0%   (0/2)0%   (0/1)
getText (Object): String 0%   (0/1)0%   (0/4)0%   (0/1)
notifyChanged (Notification): void 0%   (0/1)0%   (0/7)0%   (0/3)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.pcm.designdecision.provider;
8 
9 
10import de.uka.ipd.sdq.pcm.designdecision.designdecisionPackage;
11 
12import java.util.Collection;
13import java.util.List;
14 
15import org.eclipse.emf.common.notify.AdapterFactory;
16import org.eclipse.emf.common.notify.Notification;
17 
18import org.eclipse.emf.common.util.ResourceLocator;
19 
20import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
21import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
22import org.eclipse.emf.edit.provider.IItemLabelProvider;
23import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
24import org.eclipse.emf.edit.provider.IItemPropertySource;
25import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
26import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
27import org.eclipse.emf.edit.provider.ItemProviderAdapter;
28 
29/**
30 * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.designdecision.FeatureSubset} object.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @generated
34 */
35public class FeatureSubsetItemProvider
36        extends ItemProviderAdapter
37        implements
38                IEditingDomainItemProvider,
39                IStructuredItemContentProvider,
40                ITreeItemContentProvider,
41                IItemLabelProvider,
42                IItemPropertySource {
43        /**
44         * This constructs an instance from a factory and a notifier.
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @generated
48         */
49        public FeatureSubsetItemProvider(AdapterFactory adapterFactory) {
50                super(adapterFactory);
51        }
52 
53        /**
54         * This returns the property descriptors for the adapted class.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @generated
58         */
59        @Override
60        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
61                if (itemPropertyDescriptors == null) {
62                        super.getPropertyDescriptors(object);
63 
64                        addFeaturePropertyDescriptor(object);
65                }
66                return itemPropertyDescriptors;
67        }
68 
69        /**
70         * This adds a property descriptor for the Feature feature.
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @generated
74         */
75        protected void addFeaturePropertyDescriptor(Object object) {
76                itemPropertyDescriptors.add
77                        (createItemPropertyDescriptor
78                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
79                                 getResourceLocator(),
80                                 getString("_UI_FeatureSubset_feature_feature"),
81                                 getString("_UI_PropertyDescriptor_description", "_UI_FeatureSubset_feature_feature", "_UI_FeatureSubset_type"),
82                                 designdecisionPackage.Literals.FEATURE_SUBSET__FEATURE,
83                                 true,
84                                 false,
85                                 true,
86                                 null,
87                                 null,
88                                 null));
89        }
90 
91        /**
92         * This returns FeatureSubset.gif.
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        @Override
98        public Object getImage(Object object) {
99                return overlayImage(object, getResourceLocator().getImage("full/obj16/FeatureSubset"));
100        }
101 
102        /**
103         * This returns the label text for the adapted class.
104         * <!-- begin-user-doc -->
105         * <!-- end-user-doc -->
106         * @generated
107         */
108        @Override
109        public String getText(Object object) {
110                return getString("_UI_FeatureSubset_type");
111        }
112 
113        /**
114         * This handles model notifications by calling {@link #updateChildren} to update any cached
115         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
116         * <!-- begin-user-doc -->
117         * <!-- end-user-doc -->
118         * @generated
119         */
120        @Override
121        public void notifyChanged(Notification notification) {
122                updateChildren(notification);
123                super.notifyChanged(notification);
124        }
125 
126        /**
127         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
128         * that can be created under this object.
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        @Override
134        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
135                super.collectNewChildDescriptors(newChildDescriptors, object);
136        }
137 
138        /**
139         * Return the resource locator for this item provider's resources.
140         * <!-- begin-user-doc -->
141         * <!-- end-user-doc -->
142         * @generated
143         */
144        @Override
145        public ResourceLocator getResourceLocator() {
146                return DesignDecisionEditPlugin.INSTANCE;
147        }
148 
149}

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