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

COVERAGE SUMMARY FOR SOURCE FILE [ConfidenceIntervalItemProvider.java]

nameclass, %method, %block, %line, %
ConfidenceIntervalItemProvider.java0%   (0/1)0%   (0/11)0%   (0/192)0%   (0/77)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ConfidenceIntervalItemProvider0%   (0/1)0%   (0/11)0%   (0/192)0%   (0/77)
ConfidenceIntervalItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addConfidenceLevelPropertyDescriptor (Object): void 0%   (0/1)0%   (0/28)0%   (0/14)
addLowerBoundPropertyDescriptor (Object): void 0%   (0/1)0%   (0/28)0%   (0/14)
addMeanPropertyDescriptor (Object): void 0%   (0/1)0%   (0/28)0%   (0/14)
addUpperBoundPropertyDescriptor (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/22)0%   (0/7)
getResourceLocator (): ResourceLocator 0%   (0/1)0%   (0/2)0%   (0/1)
getText (Object): String 0%   (0/1)0%   (0/17)0%   (0/2)
notifyChanged (Notification): void 0%   (0/1)0%   (0/22)0%   (0/6)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.pcm.designdecision.QualityProperties.provider;
8 
9 
10import de.uka.ipd.sdq.pcm.designdecision.QualityProperties.ConfidenceInterval;
11import de.uka.ipd.sdq.pcm.designdecision.QualityProperties.QualityPropertiesPackage;
12 
13import de.uka.ipd.sdq.pcm.designdecision.provider.DesignDecisionEditPlugin;
14 
15import java.util.Collection;
16import java.util.List;
17 
18import org.eclipse.emf.common.notify.AdapterFactory;
19import org.eclipse.emf.common.notify.Notification;
20 
21import org.eclipse.emf.common.util.ResourceLocator;
22 
23import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
24import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
25import org.eclipse.emf.edit.provider.IItemLabelProvider;
26import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
27import org.eclipse.emf.edit.provider.IItemPropertySource;
28import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
29import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
30import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
31import org.eclipse.emf.edit.provider.ItemProviderAdapter;
32import org.eclipse.emf.edit.provider.ViewerNotification;
33 
34/**
35 * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.designdecision.QualityProperties.ConfidenceInterval} object.
36 * <!-- begin-user-doc -->
37 * <!-- end-user-doc -->
38 * @generated
39 */
40public class ConfidenceIntervalItemProvider
41        extends ItemProviderAdapter
42        implements
43                IEditingDomainItemProvider,
44                IStructuredItemContentProvider,
45                ITreeItemContentProvider,
46                IItemLabelProvider,
47                IItemPropertySource {
48        /**
49         * This constructs an instance from a factory and a notifier.
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @generated
53         */
54        public ConfidenceIntervalItemProvider(AdapterFactory adapterFactory) {
55                super(adapterFactory);
56        }
57 
58        /**
59         * This returns the property descriptors for the adapted class.
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @generated
63         */
64        @Override
65        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
66                if (itemPropertyDescriptors == null) {
67                        super.getPropertyDescriptors(object);
68 
69                        addConfidenceLevelPropertyDescriptor(object);
70                        addMeanPropertyDescriptor(object);
71                        addUpperBoundPropertyDescriptor(object);
72                        addLowerBoundPropertyDescriptor(object);
73                }
74                return itemPropertyDescriptors;
75        }
76 
77        /**
78         * This adds a property descriptor for the Confidence Level feature.
79         * <!-- begin-user-doc -->
80         * <!-- end-user-doc -->
81         * @generated
82         */
83        protected void addConfidenceLevelPropertyDescriptor(Object object) {
84                itemPropertyDescriptors.add
85                        (createItemPropertyDescriptor
86                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
87                                 getResourceLocator(),
88                                 getString("_UI_ConfidenceInterval_confidenceLevel_feature"),
89                                 getString("_UI_PropertyDescriptor_description", "_UI_ConfidenceInterval_confidenceLevel_feature", "_UI_ConfidenceInterval_type"),
90                                 QualityPropertiesPackage.Literals.CONFIDENCE_INTERVAL__CONFIDENCE_LEVEL,
91                                 true,
92                                 false,
93                                 false,
94                                 ItemPropertyDescriptor.REAL_VALUE_IMAGE,
95                                 null,
96                                 null));
97        }
98 
99        /**
100         * This adds a property descriptor for the Mean feature.
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @generated
104         */
105        protected void addMeanPropertyDescriptor(Object object) {
106                itemPropertyDescriptors.add
107                        (createItemPropertyDescriptor
108                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
109                                 getResourceLocator(),
110                                 getString("_UI_ConfidenceInterval_mean_feature"),
111                                 getString("_UI_PropertyDescriptor_description", "_UI_ConfidenceInterval_mean_feature", "_UI_ConfidenceInterval_type"),
112                                 QualityPropertiesPackage.Literals.CONFIDENCE_INTERVAL__MEAN,
113                                 true,
114                                 false,
115                                 false,
116                                 ItemPropertyDescriptor.REAL_VALUE_IMAGE,
117                                 null,
118                                 null));
119        }
120 
121        /**
122         * This adds a property descriptor for the Upper Bound feature.
123         * <!-- begin-user-doc -->
124         * <!-- end-user-doc -->
125         * @generated
126         */
127        protected void addUpperBoundPropertyDescriptor(Object object) {
128                itemPropertyDescriptors.add
129                        (createItemPropertyDescriptor
130                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
131                                 getResourceLocator(),
132                                 getString("_UI_ConfidenceInterval_upperBound_feature"),
133                                 getString("_UI_PropertyDescriptor_description", "_UI_ConfidenceInterval_upperBound_feature", "_UI_ConfidenceInterval_type"),
134                                 QualityPropertiesPackage.Literals.CONFIDENCE_INTERVAL__UPPER_BOUND,
135                                 true,
136                                 false,
137                                 false,
138                                 ItemPropertyDescriptor.REAL_VALUE_IMAGE,
139                                 null,
140                                 null));
141        }
142 
143        /**
144         * This adds a property descriptor for the Lower Bound feature.
145         * <!-- begin-user-doc -->
146         * <!-- end-user-doc -->
147         * @generated
148         */
149        protected void addLowerBoundPropertyDescriptor(Object object) {
150                itemPropertyDescriptors.add
151                        (createItemPropertyDescriptor
152                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
153                                 getResourceLocator(),
154                                 getString("_UI_ConfidenceInterval_lowerBound_feature"),
155                                 getString("_UI_PropertyDescriptor_description", "_UI_ConfidenceInterval_lowerBound_feature", "_UI_ConfidenceInterval_type"),
156                                 QualityPropertiesPackage.Literals.CONFIDENCE_INTERVAL__LOWER_BOUND,
157                                 true,
158                                 false,
159                                 false,
160                                 ItemPropertyDescriptor.REAL_VALUE_IMAGE,
161                                 null,
162                                 null));
163        }
164 
165        /**
166         * This returns ConfidenceInterval.gif.
167         * <!-- begin-user-doc -->
168         * <!-- end-user-doc -->
169         * @generated
170         */
171        @Override
172        public Object getImage(Object object) {
173                return overlayImage(object, getResourceLocator().getImage("full/obj16/ConfidenceInterval"));
174        }
175 
176        /**
177         * This returns the label text for the adapted class.
178         * <!-- begin-user-doc -->
179         * <!-- end-user-doc -->
180         * @generated
181         */
182        @Override
183        public String getText(Object object) {
184                ConfidenceInterval confidenceInterval = (ConfidenceInterval)object;
185                return getString("_UI_ConfidenceInterval_type") + " " + confidenceInterval.getConfidenceLevel();
186        }
187 
188        /**
189         * This handles model notifications by calling {@link #updateChildren} to update any cached
190         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
191         * <!-- begin-user-doc -->
192         * <!-- end-user-doc -->
193         * @generated
194         */
195        @Override
196        public void notifyChanged(Notification notification) {
197                updateChildren(notification);
198 
199                switch (notification.getFeatureID(ConfidenceInterval.class)) {
200                        case QualityPropertiesPackage.CONFIDENCE_INTERVAL__CONFIDENCE_LEVEL:
201                        case QualityPropertiesPackage.CONFIDENCE_INTERVAL__MEAN:
202                        case QualityPropertiesPackage.CONFIDENCE_INTERVAL__UPPER_BOUND:
203                        case QualityPropertiesPackage.CONFIDENCE_INTERVAL__LOWER_BOUND:
204                                fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
205                                return;
206                }
207                super.notifyChanged(notification);
208        }
209 
210        /**
211         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
212         * that can be created under this object.
213         * <!-- begin-user-doc -->
214         * <!-- end-user-doc -->
215         * @generated
216         */
217        @Override
218        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
219                super.collectNewChildDescriptors(newChildDescriptors, object);
220        }
221 
222        /**
223         * Return the resource locator for this item provider's resources.
224         * <!-- begin-user-doc -->
225         * <!-- end-user-doc -->
226         * @generated
227         */
228        @Override
229        public ResourceLocator getResourceLocator() {
230                return DesignDecisionEditPlugin.INSTANCE;
231        }
232 
233}

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