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

nameclass, %method, %block, %line, %
FeatureGroupDegreeItemProvider.java0%   (0/1)0%   (0/9)0%   (0/112)0%   (0/39)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FeatureGroupDegreeItemProvider0%   (0/1)0%   (0/9)0%   (0/112)0%   (0/39)
FeatureGroupDegreeItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addFeaturegroupPropertyDescriptor (Object): void 0%   (0/1)0%   (0/28)0%   (0/14)
collectNewChildDescriptors (Collection, Object): void 0%   (0/1)0%   (0/13)0%   (0/6)
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/13)0%   (0/4)
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.FeatureGroupDegree;
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.ecore.EStructuralFeature;
21 
22import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
23import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
24import org.eclipse.emf.edit.provider.IItemLabelProvider;
25import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
26import org.eclipse.emf.edit.provider.IItemPropertySource;
27import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
28import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
29import org.eclipse.emf.edit.provider.ViewerNotification;
30 
31/**
32 * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.designdecision.FeatureGroupDegree} object.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @generated
36 */
37public class FeatureGroupDegreeItemProvider
38        extends FeatureConfigDegreeItemProvider
39        implements
40                IEditingDomainItemProvider,
41                IStructuredItemContentProvider,
42                ITreeItemContentProvider,
43                IItemLabelProvider,
44                IItemPropertySource {
45        /**
46         * This constructs an instance from a factory and a notifier.
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @generated
50         */
51        public FeatureGroupDegreeItemProvider(AdapterFactory adapterFactory) {
52                super(adapterFactory);
53        }
54 
55        /**
56         * This returns the property descriptors for the adapted class.
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @generated
60         */
61        @Override
62        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
63                if (itemPropertyDescriptors == null) {
64                        super.getPropertyDescriptors(object);
65 
66                        addFeaturegroupPropertyDescriptor(object);
67                }
68                return itemPropertyDescriptors;
69        }
70 
71        /**
72         * This adds a property descriptor for the Featuregroup feature.
73         * <!-- begin-user-doc -->
74         * <!-- end-user-doc -->
75         * @generated
76         */
77        protected void addFeaturegroupPropertyDescriptor(Object object) {
78                itemPropertyDescriptors.add
79                        (createItemPropertyDescriptor
80                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
81                                 getResourceLocator(),
82                                 getString("_UI_FeatureGroupDegree_featuregroup_feature"),
83                                 getString("_UI_PropertyDescriptor_description", "_UI_FeatureGroupDegree_featuregroup_feature", "_UI_FeatureGroupDegree_type"),
84                                 designdecisionPackage.Literals.FEATURE_GROUP_DEGREE__FEATUREGROUP,
85                                 true,
86                                 false,
87                                 true,
88                                 null,
89                                 null,
90                                 null));
91        }
92 
93        /**
94         * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
95         * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
96         * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
97         * <!-- begin-user-doc -->
98         * <!-- end-user-doc -->
99         * @generated
100         */
101        @Override
102        public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
103                if (childrenFeatures == null) {
104                        super.getChildrenFeatures(object);
105                        childrenFeatures.add(designdecisionPackage.Literals.FEATURE_GROUP_DEGREE__DOMAIN_OF_FEATURE_CONFIG_COMBINATIONS);
106                }
107                return childrenFeatures;
108        }
109 
110        /**
111         * <!-- begin-user-doc -->
112         * <!-- end-user-doc -->
113         * @generated
114         */
115        @Override
116        protected EStructuralFeature getChildFeature(Object object, Object child) {
117                // Check the type of the specified child object and return the proper feature to use for
118                // adding (see {@link AddCommand}) it as a child.
119 
120                return super.getChildFeature(object, child);
121        }
122 
123        /**
124         * This returns FeatureGroupDegree.gif.
125         * <!-- begin-user-doc -->
126         * <!-- end-user-doc -->
127         * @generated
128         */
129        @Override
130        public Object getImage(Object object) {
131                return overlayImage(object, getResourceLocator().getImage("full/obj16/FeatureGroupDegree"));
132        }
133 
134        /**
135         * This returns the label text for the adapted class.
136         * <!-- begin-user-doc -->
137         * <!-- end-user-doc -->
138         * @generated
139         */
140        @Override
141        public String getText(Object object) {
142                return getString("_UI_FeatureGroupDegree_type");
143        }
144 
145        /**
146         * This handles model notifications by calling {@link #updateChildren} to update any cached
147         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
148         * <!-- begin-user-doc -->
149         * <!-- end-user-doc -->
150         * @generated
151         */
152        @Override
153        public void notifyChanged(Notification notification) {
154                updateChildren(notification);
155 
156                switch (notification.getFeatureID(FeatureGroupDegree.class)) {
157                        case designdecisionPackage.FEATURE_GROUP_DEGREE__DOMAIN_OF_FEATURE_CONFIG_COMBINATIONS:
158                                fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
159                                return;
160                }
161                super.notifyChanged(notification);
162        }
163 
164        /**
165         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
166         * that can be created under this object.
167         * <!-- begin-user-doc -->
168         * <!-- end-user-doc -->
169         * @generated
170         */
171        @Override
172        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
173                super.collectNewChildDescriptors(newChildDescriptors, object);
174 
175                newChildDescriptors.add
176                        (createChildParameter
177                                (designdecisionPackage.Literals.FEATURE_GROUP_DEGREE__DOMAIN_OF_FEATURE_CONFIG_COMBINATIONS,
178                                 designdecisionFactory.eINSTANCE.createFeatureSubset()));
179        }
180 
181}

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