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

COVERAGE SUMMARY FOR SOURCE FILE [FailureDimensionResultSpecificationItemProvider.java]

nameclass, %method, %block, %line, %
FailureDimensionResultSpecificationItemProvider.java0%   (0/1)0%   (0/7)0%   (0/120)0%   (0/37)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FailureDimensionResultSpecificationItemProvider0%   (0/1)0%   (0/7)0%   (0/120)0%   (0/37)
FailureDimensionResultSpecificationItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addFailureDimension__FailureDimensionResultSpecificationPropertyDescriptor (O... 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/13)0%   (0/4)
getText (Object): String 0%   (0/1)0%   (0/40)0%   (0/8)
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.sensitivity.provider;
8 
9 
10import de.uka.ipd.sdq.sensitivity.FailureDimensionResultSpecification;
11import de.uka.ipd.sdq.sensitivity.SensitivityPackage;
12 
13import java.util.Collection;
14import java.util.List;
15 
16import org.eclipse.emf.common.notify.AdapterFactory;
17import org.eclipse.emf.common.notify.Notification;
18 
19import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
20import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
21import org.eclipse.emf.edit.provider.IItemLabelProvider;
22import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
23import org.eclipse.emf.edit.provider.IItemPropertySource;
24import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
25import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
26import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
27import org.eclipse.emf.edit.provider.ViewerNotification;
28 
29/**
30 * This is the item provider adapter for a {@link de.uka.ipd.sdq.sensitivity.FailureDimensionResultSpecification} object.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @generated
34 */
35public class FailureDimensionResultSpecificationItemProvider
36        extends SensitivityResultSpecificationItemProvider
37        implements
38                IEditingDomainItemProvider,
39                IStructuredItemContentProvider,
40                ITreeItemContentProvider,
41                IItemLabelProvider,
42                IItemPropertySource {
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 FailureDimensionResultSpecificationItemProvider(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                        addFailureDimension__FailureDimensionResultSpecificationPropertyDescriptor(object);
65                }
66                return itemPropertyDescriptors;
67        }
68 
69        /**
70         * This adds a property descriptor for the Failure Dimension Failure Dimension Result Specification feature.
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @generated
74         */
75        protected void addFailureDimension__FailureDimensionResultSpecificationPropertyDescriptor(Object object) {
76                itemPropertyDescriptors.add
77                        (createItemPropertyDescriptor
78                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
79                                 getResourceLocator(),
80                                 getString("_UI_FailureDimensionResultSpecification_failureDimension__FailureDimensionResultSpecification_feature"),
81                                 getString("_UI_PropertyDescriptor_description", "_UI_FailureDimensionResultSpecification_failureDimension__FailureDimensionResultSpecification_feature", "_UI_FailureDimensionResultSpecification_type"),
82                                 SensitivityPackage.Literals.FAILURE_DIMENSION_RESULT_SPECIFICATION__FAILURE_DIMENSION_FAILURE_DIMENSION_RESULT_SPECIFICATION,
83                                 true,
84                                 false,
85                                 false,
86                                 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
87                                 null,
88                                 null));
89        }
90 
91        /**
92         * This returns FailureDimensionResultSpecification.gif.
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        @Override
98        public Object getImage(Object object) {
99                return overlayImage(object, getResourceLocator().getImage("full/obj16/FailureDimensionResultSpecification"));
100        }
101 
102        /**
103         * This returns the label text for the adapted class.
104         * <!-- begin-user-doc -->
105         * <!-- end-user-doc -->
106         * @generated not
107         */
108        @Override
109        public String getText(Object object) {
110                String failureDimensionName = "UNSPECIFIED";
111                try {
112                        failureDimensionName = ((FailureDimensionResultSpecification)object).
113                                getFailureDimension__FailureDimensionResultSpecification().getName();
114                } catch(Exception e) {}
115                return ((FailureDimensionResultSpecification)object).getEntityName()
116                        + " (" + failureDimensionName + ")"
117                        + " [ID: " + ((FailureDimensionResultSpecification)object).getId() + "]"
118                        + " <" + getString("_UI_FailureDimensionResultSpecification_type") + ">";
119        }
120 
121        /**
122         * This handles model notifications by calling {@link #updateChildren} to update any cached
123         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
124         * <!-- begin-user-doc -->
125         * <!-- end-user-doc -->
126         * @generated
127         */
128        @Override
129        public void notifyChanged(Notification notification) {
130                updateChildren(notification);
131 
132                switch (notification.getFeatureID(FailureDimensionResultSpecification.class)) {
133                        case SensitivityPackage.FAILURE_DIMENSION_RESULT_SPECIFICATION__FAILURE_DIMENSION_FAILURE_DIMENSION_RESULT_SPECIFICATION:
134                                fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
135                                return;
136                }
137                super.notifyChanged(notification);
138        }
139 
140        /**
141         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
142         * that can be created under this object.
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        @Override
148        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
149                super.collectNewChildDescriptors(newChildDescriptors, object);
150        }
151 
152}

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