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

nameclass, %method, %block, %line, %
SingleSensitivityParameterItemProvider.java0%   (0/1)0%   (0/7)0%   (0/119)0%   (0/38)

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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