EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][edu.kit.ipd.sdq.completionfeaturemodel.provider]

COVERAGE SUMMARY FOR SOURCE FILE [CompletionFeatureGroupItemProvider.java]

nameclass, %method, %block, %line, %
CompletionFeatureGroupItemProvider.java0%   (0/1)0%   (0/7)0%   (0/61)0%   (0/18)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CompletionFeatureGroupItemProvider0%   (0/1)0%   (0/7)0%   (0/61)0%   (0/18)
CompletionFeatureGroupItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
collectNewChildDescriptors (Collection, Object): void 0%   (0/1)0%   (0/13)0%   (0/6)
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/17)0%   (0/2)
notifyChanged (Notification): void 0%   (0/1)0%   (0/7)0%   (0/3)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package edu.kit.ipd.sdq.completionfeaturemodel.provider;
8 
9 
10import de.uka.ipd.sdq.featuremodel.featuremodelPackage;
11 
12import de.uka.ipd.sdq.featuremodel.provider.FeatureGroupItemProvider;
13 
14import edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeatureGroup;
15import edu.kit.ipd.sdq.completionfeaturemodel.completionfeaturemodelFactory;
16 
17import java.util.Collection;
18import java.util.List;
19 
20import org.eclipse.emf.common.notify.AdapterFactory;
21import org.eclipse.emf.common.notify.Notification;
22 
23import org.eclipse.emf.common.util.ResourceLocator;
24 
25import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
26import org.eclipse.emf.edit.provider.IItemColorProvider;
27import org.eclipse.emf.edit.provider.IItemLabelProvider;
28import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
29import org.eclipse.emf.edit.provider.IItemPropertySource;
30import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
31import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
32 
33/**
34 * This is the item provider adapter for a {@link edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeatureGroup} object.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @generated
38 */
39public class CompletionFeatureGroupItemProvider
40        extends FeatureGroupItemProvider
41        implements
42                IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, IItemColorProvider {
43        /**
44         * This constructs an instance from a factory and a notifier.
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @generated
48         */
49        public CompletionFeatureGroupItemProvider(AdapterFactory adapterFactory) {
50                super(adapterFactory);
51        }
52 
53        /**
54         * This returns the property descriptors for the adapted class.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @generated
58         */
59        @Override
60        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
61                if (itemPropertyDescriptors == null) {
62                        super.getPropertyDescriptors(object);
63 
64                }
65                return itemPropertyDescriptors;
66        }
67 
68        /**
69         * This returns CompletionFeatureGroup.gif.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @generated
73         */
74        @Override
75        public Object getImage(Object object) {
76                return overlayImage(object, getResourceLocator().getImage("full/obj16/CompletionFeatureGroup"));
77        }
78 
79        /**
80         * This returns the label text for the adapted class.
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @generated
84         */
85        @Override
86        public String getText(Object object) {
87                CompletionFeatureGroup completionFeatureGroup = (CompletionFeatureGroup)object;
88                return getString("_UI_CompletionFeatureGroup_type") + " " + completionFeatureGroup.getMin();
89        }
90 
91        /**
92         * This handles model notifications by calling {@link #updateChildren} to update any cached
93         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        @Override
99        public void notifyChanged(Notification notification) {
100                updateChildren(notification);
101                super.notifyChanged(notification);
102        }
103 
104        /**
105         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
106         * that can be created under this object.
107         * <!-- begin-user-doc -->
108         * <!-- end-user-doc -->
109         * @generated
110         */
111        @Override
112        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
113                super.collectNewChildDescriptors(newChildDescriptors, object);
114 
115                newChildDescriptors.add
116                        (createChildParameter
117                                (featuremodelPackage.Literals.FEATURE_GROUP__CHILDREN,
118                                 completionfeaturemodelFactory.eINSTANCE.createCompletionFeature()));
119        }
120 
121        /**
122         * Return the resource locator for this item provider's resources.
123         * <!-- begin-user-doc -->
124         * <!-- end-user-doc -->
125         * @generated
126         */
127        @Override
128        public ResourceLocator getResourceLocator() {
129                return CompletionfeaturemodelEditPlugin.INSTANCE;
130        }
131 
132}

[all classes][edu.kit.ipd.sdq.completionfeaturemodel.provider]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov