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

COVERAGE SUMMARY FOR SOURCE FILE [VariableItemProvider.java]

nameclass, %method, %block, %line, %
VariableItemProvider.java0%   (0/1)0%   (0/7)0%   (0/69)0%   (0/27)

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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