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

COVERAGE SUMMARY FOR SOURCE FILE [ResourceDescriptionRepositoryItemProvider.java]

nameclass, %method, %block, %line, %
ResourceDescriptionRepositoryItemProvider.java0%   (0/1)0%   (0/9)0%   (0/83)0%   (0/25)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ResourceDescriptionRepositoryItemProvider0%   (0/1)0%   (0/9)0%   (0/83)0%   (0/25)
ResourceDescriptionRepositoryItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
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/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/22)0%   (0/6)

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

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