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

nameclass, %method, %block, %line, %
DecisionSpaceItemProvider.java0%   (0/1)0%   (0/9)0%   (0/235)0%   (0/101)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DecisionSpaceItemProvider0%   (0/1)0%   (0/9)0%   (0/235)0%   (0/101)
DecisionSpaceItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
collectNewChildDescriptors (Collection, Object): void 0%   (0/1)0%   (0/165)0%   (0/82)
getChildFeature (Object, Object): EStructuralFeature 0%   (0/1)0%   (0/5)0%   (0/1)
getChildrenFeatures (Object): Collection 0%   (0/1)0%   (0/15)0%   (0/4)
getImage (Object): Object 0%   (0/1)0%   (0/8)0%   (0/1)
getPropertyDescriptors (Object): List 0%   (0/1)0%   (0/10)0%   (0/3)
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/22)0%   (0/6)

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.DecisionSpace;
11import de.uka.ipd.sdq.pcm.designdecision.designdecisionFactory;
12import de.uka.ipd.sdq.pcm.designdecision.designdecisionPackage;
13 
14import java.util.Collection;
15import java.util.List;
16 
17import org.eclipse.emf.common.notify.AdapterFactory;
18import org.eclipse.emf.common.notify.Notification;
19 
20import org.eclipse.emf.common.util.ResourceLocator;
21 
22import org.eclipse.emf.ecore.EStructuralFeature;
23 
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.ItemProviderAdapter;
31import org.eclipse.emf.edit.provider.ViewerNotification;
32 
33/**
34 * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.designdecision.DecisionSpace} object.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @generated
38 */
39public class DecisionSpaceItemProvider
40        extends ItemProviderAdapter
41        implements
42                IEditingDomainItemProvider,
43                IStructuredItemContentProvider,
44                ITreeItemContentProvider,
45                IItemLabelProvider,
46                IItemPropertySource {
47        /**
48         * This constructs an instance from a factory and a notifier.
49         * <!-- begin-user-doc -->
50         * <!-- end-user-doc -->
51         * @generated
52         */
53        public DecisionSpaceItemProvider(AdapterFactory adapterFactory) {
54                super(adapterFactory);
55        }
56 
57        /**
58         * This returns the property descriptors for the adapted class.
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @generated
62         */
63        @Override
64        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
65                if (itemPropertyDescriptors == null) {
66                        super.getPropertyDescriptors(object);
67 
68                }
69                return itemPropertyDescriptors;
70        }
71 
72        /**
73         * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
74         * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
75         * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @generated
79         */
80        @Override
81        public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
82                if (childrenFeatures == null) {
83                        super.getChildrenFeatures(object);
84                        childrenFeatures.add(designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM);
85                }
86                return childrenFeatures;
87        }
88 
89        /**
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @generated
93         */
94        @Override
95        protected EStructuralFeature getChildFeature(Object object, Object child) {
96                // Check the type of the specified child object and return the proper feature to use for
97                // adding (see {@link AddCommand}) it as a child.
98 
99                return super.getChildFeature(object, child);
100        }
101 
102        /**
103         * This returns DecisionSpace.gif.
104         * <!-- begin-user-doc -->
105         * <!-- end-user-doc -->
106         * @generated
107         */
108        @Override
109        public Object getImage(Object object) {
110                return overlayImage(object, getResourceLocator().getImage("full/obj16/DecisionSpace"));
111        }
112 
113        /**
114         * This returns the label text for the adapted class.
115         * <!-- begin-user-doc -->
116         * <!-- end-user-doc -->
117         * @generated
118         */
119        @Override
120        public String getText(Object object) {
121                return getString("_UI_DecisionSpace_type");
122        }
123 
124        /**
125         * This handles model notifications by calling {@link #updateChildren} to update any cached
126         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
127         * <!-- begin-user-doc -->
128         * <!-- end-user-doc -->
129         * @generated
130         */
131        @Override
132        public void notifyChanged(Notification notification) {
133                updateChildren(notification);
134 
135                switch (notification.getFeatureID(DecisionSpace.class)) {
136                        case designdecisionPackage.DECISION_SPACE__DEGREES_OF_FREEDOM:
137                                fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
138                                return;
139                }
140                super.notifyChanged(notification);
141        }
142 
143        /**
144         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
145         * that can be created under this object.
146         * <!-- begin-user-doc -->
147         * <!-- end-user-doc -->
148         * @generated
149         */
150        @Override
151        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
152                super.collectNewChildDescriptors(newChildDescriptors, object);
153 
154                newChildDescriptors.add
155                        (createChildParameter
156                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
157                                 designdecisionFactory.eINSTANCE.createContinuousRangeDegree()));
158 
159                newChildDescriptors.add
160                        (createChildParameter
161                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
162                                 designdecisionFactory.eINSTANCE.createContinuousProcessingRateDegree()));
163 
164                newChildDescriptors.add
165                        (createChildParameter
166                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
167                                 designdecisionFactory.eINSTANCE.createClassAsReferenceDegree()));
168 
169                newChildDescriptors.add
170                        (createChildParameter
171                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
172                                 designdecisionFactory.eINSTANCE.createAllocationDegree()));
173 
174                newChildDescriptors.add
175                        (createChildParameter
176                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
177                                 designdecisionFactory.eINSTANCE.createAssembledComponentDegree()));
178 
179                newChildDescriptors.add
180                        (createChildParameter
181                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
182                                 designdecisionFactory.eINSTANCE.createDiscreteRangeDegree()));
183 
184                newChildDescriptors.add
185                        (createChildParameter
186                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
187                                 designdecisionFactory.eINSTANCE.createResourceContainerReplicationDegree()));
188 
189                newChildDescriptors.add
190                        (createChildParameter
191                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
192                                 designdecisionFactory.eINSTANCE.createFeatureGroupDegree()));
193 
194                newChildDescriptors.add
195                        (createChildParameter
196                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
197                                 designdecisionFactory.eINSTANCE.createOptionalFeatureDegree()));
198 
199                newChildDescriptors.add
200                        (createChildParameter
201                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
202                                 designdecisionFactory.eINSTANCE.createDiscreteProcessingRateDegree()));
203 
204                newChildDescriptors.add
205                        (createChildParameter
206                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
207                                 designdecisionFactory.eINSTANCE.createCapacityDegree()));
208 
209                newChildDescriptors.add
210                        (createChildParameter
211                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
212                                 designdecisionFactory.eINSTANCE.createSchedulingPolicyDegree()));
213 
214                newChildDescriptors.add
215                        (createChildParameter
216                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
217                                 designdecisionFactory.eINSTANCE.createResourceSelectionDegree()));
218 
219                newChildDescriptors.add
220                        (createChildParameter
221                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
222                                 designdecisionFactory.eINSTANCE.createDiscreteComponentParamDegree()));
223 
224                newChildDescriptors.add
225                        (createChildParameter
226                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
227                                 designdecisionFactory.eINSTANCE.createContinuousComponentParamDegree()));
228 
229                newChildDescriptors.add
230                        (createChildParameter
231                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
232                                 designdecisionFactory.eINSTANCE.createStringComponentParamDegree()));
233 
234                newChildDescriptors.add
235                        (createChildParameter
236                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
237                                 designdecisionFactory.eINSTANCE.createNumberOfCoresAsRangeDegree()));
238 
239                newChildDescriptors.add
240                        (createChildParameter
241                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
242                                 designdecisionFactory.eINSTANCE.createResourceContainerReplicationDegreeWithComponentChange()));
243 
244                newChildDescriptors.add
245                        (createChildParameter
246                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
247                                 designdecisionFactory.eINSTANCE.createOrderedIntegerDegree()));
248 
249                newChildDescriptors.add
250                        (createChildParameter
251                                (designdecisionPackage.Literals.DECISION_SPACE__DEGREES_OF_FREEDOM,
252                                 designdecisionFactory.eINSTANCE.createNumberOfCoresAsListDegree()));
253        }
254 
255        /**
256         * Return the resource locator for this item provider's resources.
257         * <!-- begin-user-doc -->
258         * <!-- end-user-doc -->
259         * @generated
260         */
261        @Override
262        public ResourceLocator getResourceLocator() {
263                return DesignDecisionEditPlugin.INSTANCE;
264        }
265 
266}

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