EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.featuremodel.provider]

COVERAGE SUMMARY FOR SOURCE FILE [RequiredConstraintItemProvider.java]

nameclass, %method, %block, %line, %
RequiredConstraintItemProvider.java0%   (0/1)0%   (0/6)0%   (0/60)0%   (0/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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