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

COVERAGE SUMMARY FOR SOURCE FILE [RelationImplementationItemProvider.java]

nameclass, %method, %block, %line, %
RelationImplementationItemProvider.java0%   (0/1)0%   (0/9)0%   (0/102)0%   (0/43)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class RelationImplementationItemProvider0%   (0/1)0%   (0/9)0%   (0/102)0%   (0/43)
RelationImplementationItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addImplPropertyDescriptor (Object): void 0%   (0/1)0%   (0/28)0%   (0/14)
addInDirectionOfPropertyDescriptor (Object): void 0%   (0/1)0%   (0/28)0%   (0/14)
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/16)0%   (0/5)
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 QVTRelation.provider;
8 
9 
10import EMOF.provider.ElementItemProvider;
11import EMOF.provider.QvtmodelsEditPlugin;
12 
13import QVTRelation.QVTRelationPackage;
14 
15import java.util.Collection;
16import java.util.List;
17 
18import org.eclipse.emf.common.notify.AdapterFactory;
19import org.eclipse.emf.common.notify.Notification;
20 
21import org.eclipse.emf.common.util.ResourceLocator;
22 
23import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
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;
30 
31/**
32 * This is the item provider adapter for a {@link QVTRelation.RelationImplementation} object.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @generated
36 */
37public class RelationImplementationItemProvider
38        extends ElementItemProvider
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 RelationImplementationItemProvider(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                        addImplPropertyDescriptor(object);
67                        addInDirectionOfPropertyDescriptor(object);
68                }
69                return itemPropertyDescriptors;
70        }
71 
72        /**
73         * This adds a property descriptor for the Impl feature.
74         * <!-- begin-user-doc -->
75         * <!-- end-user-doc -->
76         * @generated
77         */
78        protected void addImplPropertyDescriptor(Object object) {
79                itemPropertyDescriptors.add
80                        (createItemPropertyDescriptor
81                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
82                                 getResourceLocator(),
83                                 getString("_UI_RelationImplementation_impl_feature"),
84                                 getString("_UI_PropertyDescriptor_description", "_UI_RelationImplementation_impl_feature", "_UI_RelationImplementation_type"),
85                                 QVTRelationPackage.Literals.RELATION_IMPLEMENTATION__IMPL,
86                                 true,
87                                 false,
88                                 true,
89                                 null,
90                                 null,
91                                 null));
92        }
93 
94        /**
95         * This adds a property descriptor for the In Direction Of feature.
96         * <!-- begin-user-doc -->
97         * <!-- end-user-doc -->
98         * @generated
99         */
100        protected void addInDirectionOfPropertyDescriptor(Object object) {
101                itemPropertyDescriptors.add
102                        (createItemPropertyDescriptor
103                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
104                                 getResourceLocator(),
105                                 getString("_UI_RelationImplementation_inDirectionOf_feature"),
106                                 getString("_UI_PropertyDescriptor_description", "_UI_RelationImplementation_inDirectionOf_feature", "_UI_RelationImplementation_type"),
107                                 QVTRelationPackage.Literals.RELATION_IMPLEMENTATION__IN_DIRECTION_OF,
108                                 true,
109                                 false,
110                                 true,
111                                 null,
112                                 null,
113                                 null));
114        }
115 
116        /**
117         * This returns RelationImplementation.gif.
118         * <!-- begin-user-doc -->
119         * <!-- end-user-doc -->
120         * @generated
121         */
122        @Override
123        public Object getImage(Object object) {
124                return overlayImage(object, getResourceLocator().getImage("full/obj16/RelationImplementation"));
125        }
126 
127        /**
128         * This returns the label text for the adapted class.
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        @Override
134        public String getText(Object object) {
135                return getString("_UI_RelationImplementation_type");
136        }
137 
138        /**
139         * This handles model notifications by calling {@link #updateChildren} to update any cached
140         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
141         * <!-- begin-user-doc -->
142         * <!-- end-user-doc -->
143         * @generated
144         */
145        @Override
146        public void notifyChanged(Notification notification) {
147                updateChildren(notification);
148                super.notifyChanged(notification);
149        }
150 
151        /**
152         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
153         * that can be created under this object.
154         * <!-- begin-user-doc -->
155         * <!-- end-user-doc -->
156         * @generated
157         */
158        @Override
159        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
160                super.collectNewChildDescriptors(newChildDescriptors, object);
161        }
162 
163        /**
164         * Return the resource locator for this item provider's resources.
165         * <!-- begin-user-doc -->
166         * <!-- end-user-doc -->
167         * @generated
168         */
169        @Override
170        public ResourceLocator getResourceLocator() {
171                return QvtmodelsEditPlugin.INSTANCE;
172        }
173 
174}

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