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

COVERAGE SUMMARY FOR SOURCE FILE [GenericQMLProfileItemProvider.java]

nameclass, %method, %block, %line, %
GenericQMLProfileItemProvider.java0%   (0/1)0%   (0/6)0%   (0/54)0%   (0/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class GenericQMLProfileItemProvider0%   (0/1)0%   (0/6)0%   (0/54)0%   (0/15)
GenericQMLProfileItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
collectNewChildDescriptors (Collection, Object): void 0%   (0/1)0%   (0/5)0%   (0/2)
getPropertyDescriptors (Object): List 0%   (0/1)0%   (0/10)0%   (0/3)
getResourceLocator (): ResourceLocator 0%   (0/1)0%   (0/2)0%   (0/1)
getText (Object): String 0%   (0/1)0%   (0/26)0%   (0/4)
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.dsexplore.qml.profile.QMLProfile.provider;
8 
9 
10import de.uka.ipd.sdq.dsexplore.qml.declarations.QMLDeclarations.provider.QMLDeclarationItemProvider;
11 
12import de.uka.ipd.sdq.dsexplore.qml.profile.QMLProfile.GenericQMLProfile;
13 
14import java.util.Collection;
15import java.util.List;
16 
17import org.eclipse.emf.common.notify.AdapterFactory;
18import org.eclipse.emf.common.notify.Notification;
19 
20import org.eclipse.emf.common.util.ResourceLocator;
21 
22import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
23import org.eclipse.emf.edit.provider.IItemLabelProvider;
24import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
25import org.eclipse.emf.edit.provider.IItemPropertySource;
26import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
27import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
28 
29/**
30 * This is the item provider adapter for a {@link de.uka.ipd.sdq.dsexplore.qml.profile.QMLProfile.GenericQMLProfile} object.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @generated
34 */
35public class GenericQMLProfileItemProvider
36        extends QMLDeclarationItemProvider
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 GenericQMLProfileItemProvider(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                }
65                return itemPropertyDescriptors;
66        }
67 
68        /**
69         * This returns the label text for the adapted class.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @generated
73         */
74        @Override
75        public String getText(Object object) {
76                String label = ((GenericQMLProfile)object).getId();
77                return label == null || label.length() == 0 ?
78                        getString("_UI_GenericQMLProfile_type") :
79                        getString("_UI_GenericQMLProfile_type") + " " + label;
80        }
81 
82        /**
83         * This handles model notifications by calling {@link #updateChildren} to update any cached
84         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        @Override
90        public void notifyChanged(Notification notification) {
91                updateChildren(notification);
92                super.notifyChanged(notification);
93        }
94 
95        /**
96         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
97         * that can be created under this object.
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @generated
101         */
102        @Override
103        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
104                super.collectNewChildDescriptors(newChildDescriptors, object);
105        }
106 
107        /**
108         * Return the resource locator for this item provider's resources.
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @generated
112         */
113        @Override
114        public ResourceLocator getResourceLocator() {
115                return QMLProfileEditPlugin.INSTANCE;
116        }
117 
118}

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