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

COVERAGE SUMMARY FOR SOURCE FILE [RequiredRoleItemProvider.java]

nameclass, %method, %block, %line, %
RequiredRoleItemProvider.java0%   (0/1)0%   (0/6)0%   (0/60)0%   (0/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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