EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.fzi.se.quality.parameters.pcm.provider]

COVERAGE SUMMARY FOR SOURCE FILE [PCMComponentParameterReferenceItemProvider.java]

nameclass, %method, %block, %line, %
PCMComponentParameterReferenceItemProvider.java0%   (0/1)0%   (0/8)0%   (0/122)0%   (0/45)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PCMComponentParameterReferenceItemProvider0%   (0/1)0%   (0/8)0%   (0/122)0%   (0/45)
PCMComponentParameterReferenceItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addImplementationComponentTypePropertyDescriptor (Object): void 0%   (0/1)0%   (0/28)0%   (0/14)
addVariableUsagePropertyDescriptor (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/16)0%   (0/5)
getText (Object): String 0%   (0/1)0%   (0/26)0%   (0/4)
notifyChanged (Notification): void 0%   (0/1)0%   (0/7)0%   (0/3)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.fzi.se.quality.parameters.pcm.provider;
8 
9 
10import de.fzi.se.quality.parameters.pcm.PCMComponentParameterReference;
11import de.fzi.se.quality.parameters.pcm.PCMPackage;
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.fzi.se.quality.parameters.pcm.PCMComponentParameterReference} object.
29 * <!-- begin-user-doc -->
30 * <!-- end-user-doc -->
31 * @generated
32 */
33public class PCMComponentParameterReferenceItemProvider
34        extends PCMParameterReferenceItemProvider
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 PCMComponentParameterReferenceItemProvider(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                        addImplementationComponentTypePropertyDescriptor(object);
63                        addVariableUsagePropertyDescriptor(object);
64                }
65                return itemPropertyDescriptors;
66        }
67 
68        /**
69         * This adds a property descriptor for the Implementation Component Type feature.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @generated
73         */
74        protected void addImplementationComponentTypePropertyDescriptor(Object object) {
75                itemPropertyDescriptors.add
76                        (createItemPropertyDescriptor
77                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
78                                 getResourceLocator(),
79                                 getString("_UI_PCMComponentParameterReference_implementationComponentType_feature"),
80                                 getString("_UI_PropertyDescriptor_description", "_UI_PCMComponentParameterReference_implementationComponentType_feature", "_UI_PCMComponentParameterReference_type"),
81                                 PCMPackage.Literals.PCM_COMPONENT_PARAMETER_REFERENCE__IMPLEMENTATION_COMPONENT_TYPE,
82                                 true,
83                                 false,
84                                 true,
85                                 null,
86                                 null,
87                                 null));
88        }
89 
90        /**
91         * This adds a property descriptor for the Variable Usage feature.
92         * <!-- begin-user-doc -->
93         * <!-- end-user-doc -->
94         * @generated
95         */
96        protected void addVariableUsagePropertyDescriptor(Object object) {
97                itemPropertyDescriptors.add
98                        (createItemPropertyDescriptor
99                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
100                                 getResourceLocator(),
101                                 getString("_UI_PCMComponentParameterReference_variableUsage_feature"),
102                                 getString("_UI_PropertyDescriptor_description", "_UI_PCMComponentParameterReference_variableUsage_feature", "_UI_PCMComponentParameterReference_type"),
103                                 PCMPackage.Literals.PCM_COMPONENT_PARAMETER_REFERENCE__VARIABLE_USAGE,
104                                 true,
105                                 false,
106                                 true,
107                                 null,
108                                 null,
109                                 null));
110        }
111 
112        /**
113         * This returns PCMComponentParameterReference.gif.
114         * <!-- begin-user-doc -->
115         * <!-- end-user-doc -->
116         * @generated
117         */
118        @Override
119        public Object getImage(Object object) {
120                return overlayImage(object, getResourceLocator().getImage("full/obj16/PCMComponentParameterReference"));
121        }
122 
123        /**
124         * This returns the label text for the adapted class.
125         * <!-- begin-user-doc -->
126         * <!-- end-user-doc -->
127         * @generated
128         */
129        @Override
130        public String getText(Object object) {
131                String label = ((PCMComponentParameterReference)object).getId();
132                return label == null || label.length() == 0 ?
133                        getString("_UI_PCMComponentParameterReference_type") :
134                        getString("_UI_PCMComponentParameterReference_type") + " " + label;
135        }
136 
137        /**
138         * This handles model notifications by calling {@link #updateChildren} to update any cached
139         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
140         * <!-- begin-user-doc -->
141         * <!-- end-user-doc -->
142         * @generated
143         */
144        @Override
145        public void notifyChanged(Notification notification) {
146                updateChildren(notification);
147                super.notifyChanged(notification);
148        }
149 
150        /**
151         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
152         * that can be created under this object.
153         * <!-- begin-user-doc -->
154         * <!-- end-user-doc -->
155         * @generated
156         */
157        @Override
158        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
159                super.collectNewChildDescriptors(newChildDescriptors, object);
160        }
161 
162}

[all classes][de.fzi.se.quality.parameters.pcm.provider]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov