EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][EMOF.provider]

COVERAGE SUMMARY FOR SOURCE FILE [ObjectItemProvider.java]

nameclass, %method, %block, %line, %
ObjectItemProvider.java0%   (0/1)0%   (0/7)0%   (0/40)0%   (0/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ObjectItemProvider0%   (0/1)0%   (0/7)0%   (0/40)0%   (0/13)
ObjectItemProvider (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)
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/7)0%   (0/3)

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

[all classes][EMOF.provider]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov