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

COVERAGE SUMMARY FOR SOURCE FILE [ClassDegreeItemProvider.java]

nameclass, %method, %block, %line, %
ClassDegreeItemProvider.java0%   (0/1)0%   (0/6)0%   (0/61)0%   (0/26)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ClassDegreeItemProvider0%   (0/1)0%   (0/6)0%   (0/61)0%   (0/26)
ClassDegreeItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addClassDesignOptionsPropertyDescriptor (Object): void 0%   (0/1)0%   (0/28)0%   (0/14)
collectNewChildDescriptors (Collection, Object): void 0%   (0/1)0%   (0/5)0%   (0/2)
getPropertyDescriptors (Object): List 0%   (0/1)0%   (0/13)0%   (0/4)
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 de.uka.ipd.sdq.pcm.designdecision.provider;
8 
9 
10import de.uka.ipd.sdq.pcm.designdecision.designdecisionPackage;
11 
12import java.util.Collection;
13import java.util.List;
14 
15import org.eclipse.emf.common.notify.AdapterFactory;
16import org.eclipse.emf.common.notify.Notification;
17 
18import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
19import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
20import org.eclipse.emf.edit.provider.IItemLabelProvider;
21import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
22import org.eclipse.emf.edit.provider.IItemPropertySource;
23import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
24import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
25 
26/**
27 * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.designdecision.ClassDegree} object.
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32public class ClassDegreeItemProvider
33        extends DegreeOfFreedomInstanceItemProvider
34        implements
35                IEditingDomainItemProvider,
36                IStructuredItemContentProvider,
37                ITreeItemContentProvider,
38                IItemLabelProvider,
39                IItemPropertySource {
40        /**
41         * This constructs an instance from a factory and a notifier.
42         * <!-- begin-user-doc -->
43         * <!-- end-user-doc -->
44         * @generated
45         */
46        public ClassDegreeItemProvider(AdapterFactory adapterFactory) {
47                super(adapterFactory);
48        }
49 
50        /**
51         * This returns the property descriptors for the adapted class.
52         * <!-- begin-user-doc -->
53         * <!-- end-user-doc -->
54         * @generated
55         */
56        @Override
57        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
58                if (itemPropertyDescriptors == null) {
59                        super.getPropertyDescriptors(object);
60 
61                        addClassDesignOptionsPropertyDescriptor(object);
62                }
63                return itemPropertyDescriptors;
64        }
65 
66        /**
67         * This adds a property descriptor for the Class Design Options feature.
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        protected void addClassDesignOptionsPropertyDescriptor(Object object) {
73                itemPropertyDescriptors.add
74                        (createItemPropertyDescriptor
75                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
76                                 getResourceLocator(),
77                                 getString("_UI_ClassDegree_classDesignOptions_feature"),
78                                 getString("_UI_PropertyDescriptor_description", "_UI_ClassDegree_classDesignOptions_feature", "_UI_ClassDegree_type"),
79                                 designdecisionPackage.Literals.CLASS_DEGREE__CLASS_DESIGN_OPTIONS,
80                                 true,
81                                 false,
82                                 true,
83                                 null,
84                                 null,
85                                 null));
86        }
87 
88        /**
89         * This returns the label text for the adapted class.
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @generated
93         */
94        @Override
95        public String getText(Object object) {
96                return getString("_UI_ClassDegree_type");
97        }
98 
99        /**
100         * This handles model notifications by calling {@link #updateChildren} to update any cached
101         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
102         * <!-- begin-user-doc -->
103         * <!-- end-user-doc -->
104         * @generated
105         */
106        @Override
107        public void notifyChanged(Notification notification) {
108                updateChildren(notification);
109                super.notifyChanged(notification);
110        }
111 
112        /**
113         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
114         * that can be created under this object.
115         * <!-- begin-user-doc -->
116         * <!-- end-user-doc -->
117         * @generated
118         */
119        @Override
120        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
121                super.collectNewChildDescriptors(newChildDescriptors, object);
122        }
123 
124}

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