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 [ElementQualityPropertyItemProvider.java]

nameclass, %method, %block, %line, %
ElementQualityPropertyItemProvider.java0%   (0/1)0%   (0/6)0%   (0/67)0%   (0/16)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ElementQualityPropertyItemProvider0%   (0/1)0%   (0/6)0%   (0/67)0%   (0/16)
ElementQualityPropertyItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
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/10)0%   (0/3)
getText (Object): String 0%   (0/1)0%   (0/33)0%   (0/5)
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.QualityProperties.provider;
8 
9 
10import de.uka.ipd.sdq.pcm.designdecision.QualityProperties.ElementQualityProperty;
11import de.uka.ipd.sdq.pcm.designdecision.QualityProperties.QualityPropertiesPackage;
12 
13import java.util.Collection;
14import java.util.List;
15 
16import org.eclipse.emf.common.notify.AdapterFactory;
17import org.eclipse.emf.common.notify.Notification;
18 
19import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
20import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
21import org.eclipse.emf.edit.provider.IItemLabelProvider;
22import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
23import org.eclipse.emf.edit.provider.IItemPropertySource;
24import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
25import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
26 
27/**
28 * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.designdecision.QualityProperties.ElementQualityProperty} object.
29 * <!-- begin-user-doc -->
30 * <!-- end-user-doc -->
31 * @generated
32 */
33public class ElementQualityPropertyItemProvider
34        extends QualityPropertyItemProvider
35        implements
36                IEditingDomainItemProvider,
37                IStructuredItemContentProvider,
38                ITreeItemContentProvider,
39                IItemLabelProvider,
40                IItemPropertySource {
41        /**
42         * This constructs an instance from a factory and a notifier.
43         * <!-- begin-user-doc -->
44         * <!-- end-user-doc -->
45         * @generated
46         */
47        public ElementQualityPropertyItemProvider(AdapterFactory adapterFactory) {
48                super(adapterFactory);
49        }
50 
51        /**
52         * This returns the property descriptors for the adapted class.
53         * <!-- begin-user-doc -->
54         * <!-- end-user-doc -->
55         * @generated
56         */
57        @Override
58        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
59                if (itemPropertyDescriptors == null) {
60                        super.getPropertyDescriptors(object);
61 
62                }
63                return itemPropertyDescriptors;
64        }
65 
66        /**
67         * This returns ElementQualityProperty.gif.
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        @Override
73        public Object getImage(Object object) {
74                return overlayImage(object, getResourceLocator().getImage("full/obj16/ElementQualityProperty"));
75        }
76 
77        /**
78         * This returns the label text for the adapted class.
79         * <!-- begin-user-doc -->
80         * <!-- end-user-doc -->
81         * @generated
82         */
83        @Override
84        public String getText(Object object) {
85                Object labelValue = ((ElementQualityProperty)object).getQualityValue();
86                String label = labelValue == null ? null : labelValue.toString();
87                return label == null || label.length() == 0 ?
88                        getString("_UI_ElementQualityProperty_type") :
89                        getString("_UI_ElementQualityProperty_type") + " " + label;
90        }
91 
92        /**
93         * This handles model notifications by calling {@link #updateChildren} to update any cached
94         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
95         * <!-- begin-user-doc -->
96         * <!-- end-user-doc -->
97         * @generated
98         */
99        @Override
100        public void notifyChanged(Notification notification) {
101                updateChildren(notification);
102                super.notifyChanged(notification);
103        }
104 
105        /**
106         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
107         * that can be created under this object.
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        @Override
113        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
114                super.collectNewChildDescriptors(newChildDescriptors, object);
115        }
116 
117}

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