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 [SoftwareFailureTypesParameterItemProvider.java]

nameclass, %method, %block, %line, %
SoftwareFailureTypesParameterItemProvider.java0%   (0/1)0%   (0/7)0%   (0/90)0%   (0/29)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SoftwareFailureTypesParameterItemProvider0%   (0/1)0%   (0/7)0%   (0/90)0%   (0/29)
SoftwareFailureTypesParameterItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addSoftwareInducedFailureTypes__SoftwareFailureTypeReliabilityParameterProper... 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/25)0%   (0/3)
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.sensitivity.provider;
8 
9 
10import de.uka.ipd.sdq.sensitivity.SensitivityPackage;
11import de.uka.ipd.sdq.sensitivity.SoftwareFailureTypesParameter;
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;
26 
27/**
28 * This is the item provider adapter for a {@link de.uka.ipd.sdq.sensitivity.SoftwareFailureTypesParameter} object.
29 * <!-- begin-user-doc -->
30 * <!-- end-user-doc -->
31 * @generated
32 */
33public class SoftwareFailureTypesParameterItemProvider
34        extends SingleSensitivityParameterItemProvider
35        implements
36                IEditingDomainItemProvider,
37                IStructuredItemContentProvider,
38                ITreeItemContentProvider,
39                IItemLabelProvider,
40                IItemPropertySource {
41        /**
42         * This constructs an instance from a factory and a notifier.
43         * <!-- begin-user-doc -->
44         * <!-- end-user-doc -->
45         * @generated
46         */
47        public SoftwareFailureTypesParameterItemProvider(AdapterFactory adapterFactory) {
48                super(adapterFactory);
49        }
50 
51        /**
52         * This returns the property descriptors for the adapted class.
53         * <!-- begin-user-doc -->
54         * <!-- end-user-doc -->
55         * @generated
56         */
57        @Override
58        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
59                if (itemPropertyDescriptors == null) {
60                        super.getPropertyDescriptors(object);
61 
62                        addSoftwareInducedFailureTypes__SoftwareFailureTypeReliabilityParameterPropertyDescriptor(object);
63                }
64                return itemPropertyDescriptors;
65        }
66 
67        /**
68         * This adds a property descriptor for the Software Induced Failure Types Software Failure Type Reliability Parameter feature.
69         * <!-- begin-user-doc -->
70         * <!-- end-user-doc -->
71         * @generated
72         */
73        protected void addSoftwareInducedFailureTypes__SoftwareFailureTypeReliabilityParameterPropertyDescriptor(Object object) {
74                itemPropertyDescriptors.add
75                        (createItemPropertyDescriptor
76                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
77                                 getResourceLocator(),
78                                 getString("_UI_SoftwareFailureTypesParameter_softwareInducedFailureTypes__SoftwareFailureTypeReliabilityParameter_feature"),
79                                 getString("_UI_PropertyDescriptor_description", "_UI_SoftwareFailureTypesParameter_softwareInducedFailureTypes__SoftwareFailureTypeReliabilityParameter_feature", "_UI_SoftwareFailureTypesParameter_type"),
80                                 SensitivityPackage.Literals.SOFTWARE_FAILURE_TYPES_PARAMETER__SOFTWARE_INDUCED_FAILURE_TYPES_SOFTWARE_FAILURE_TYPE_RELIABILITY_PARAMETER,
81                                 true,
82                                 false,
83                                 true,
84                                 null,
85                                 null,
86                                 null));
87        }
88 
89        /**
90         * This returns SoftwareFailureTypesParameter.gif.
91         * <!-- begin-user-doc -->
92         * <!-- end-user-doc -->
93         * @generated
94         */
95        @Override
96        public Object getImage(Object object) {
97                return overlayImage(object, getResourceLocator().getImage("full/obj16/SoftwareFailureTypesParameter"));
98        }
99 
100        /**
101         * This returns the label text for the adapted class.
102         * <!-- begin-user-doc -->
103         * <!-- end-user-doc -->
104         * @generated not
105         */
106        @Override
107        public String getText(Object object) {
108                return ((SoftwareFailureTypesParameter)object).getEntityName()
109                        + " [ID: " + ((SoftwareFailureTypesParameter)object).getId() + "]"
110                        + " <" + getString("_UI_SoftwareFailureTypesParameter_type") + ">";
111        }
112 
113        /**
114         * This handles model notifications by calling {@link #updateChildren} to update any cached
115         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
116         * <!-- begin-user-doc -->
117         * <!-- end-user-doc -->
118         * @generated
119         */
120        @Override
121        public void notifyChanged(Notification notification) {
122                updateChildren(notification);
123                super.notifyChanged(notification);
124        }
125 
126        /**
127         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
128         * that can be created under this object.
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        @Override
134        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
135                super.collectNewChildDescriptors(newChildDescriptors, object);
136        }
137 
138}

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