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

nameclass, %method, %block, %line, %
CommunicationLinkReliabilityParameterItemProvider.java0%   (0/1)0%   (0/7)0%   (0/120)0%   (0/40)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CommunicationLinkReliabilityParameterItemProvider0%   (0/1)0%   (0/7)0%   (0/120)0%   (0/40)
CommunicationLinkReliabilityParameterItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addCommunicationLinkResourceSpecification__CommunicationLinkReliabilityParame... 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/55)0%   (0/14)
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.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.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.sensitivity.CommunicationLinkReliabilityParameter;
24import de.uka.ipd.sdq.sensitivity.SensitivityPackage;
25 
26/**
27 * This is the item provider adapter for a {@link de.uka.ipd.sdq.sensitivity.CommunicationLinkReliabilityParameter} object.
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32public class CommunicationLinkReliabilityParameterItemProvider
33        extends SingleSensitivityParameterItemProvider
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 CommunicationLinkReliabilityParameterItemProvider(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                        addCommunicationLinkResourceSpecification__CommunicationLinkReliabilityParameterPropertyDescriptor(object);
62                }
63                return itemPropertyDescriptors;
64        }
65 
66        /**
67         * This adds a property descriptor for the Communication Link Resource Specification Communication Link Reliability Parameter feature.
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        protected void addCommunicationLinkResourceSpecification__CommunicationLinkReliabilityParameterPropertyDescriptor(Object object) {
73                itemPropertyDescriptors.add
74                        (createItemPropertyDescriptor
75                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
76                                 getResourceLocator(),
77                                 getString("_UI_CommunicationLinkReliabilityParameter_communicationLinkResourceSpecification__CommunicationLinkReliabilityParameter_feature"),
78                                 getString("_UI_PropertyDescriptor_description", "_UI_CommunicationLinkReliabilityParameter_communicationLinkResourceSpecification__CommunicationLinkReliabilityParameter_feature", "_UI_CommunicationLinkReliabilityParameter_type"),
79                                 SensitivityPackage.Literals.COMMUNICATION_LINK_RELIABILITY_PARAMETER__COMMUNICATION_LINK_RESOURCE_SPECIFICATION_COMMUNICATION_LINK_RELIABILITY_PARAMETER,
80                                 true,
81                                 false,
82                                 true,
83                                 null,
84                                 null,
85                                 null));
86        }
87 
88        /**
89         * This returns CommunicationLinkReliabilityParameter.gif.
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @generated
93         */
94        @Override
95        public Object getImage(Object object) {
96                return overlayImage(object, getResourceLocator().getImage("full/obj16/CommunicationLinkReliabilityParameter"));
97        }
98 
99        /**
100         * This returns the label text for the adapted class.
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @generated not
104         */
105        @Override
106        public String getText(Object object) {
107                String linkingResourceName = "UNSPECIFIED";
108                try {
109                        linkingResourceName = ((CommunicationLinkReliabilityParameter)object).
110                                getCommunicationLinkResourceSpecification__CommunicationLinkReliabilityParameter().
111                                getLinkingResource_CommunicationLinkResourceSpecification().getEntityName();
112                } catch(Exception e) {}
113                String resourceTypeName = "UNSPECIFIED";
114                try {
115                        resourceTypeName = ((CommunicationLinkReliabilityParameter)object).
116                                getCommunicationLinkResourceSpecification__CommunicationLinkReliabilityParameter().
117                                getCommunicationLinkResourceType_CommunicationLinkResourceSpecification().getEntityName();
118                } catch(Exception e) {}
119                return ((CommunicationLinkReliabilityParameter)object).getEntityName()
120                        + " (" + linkingResourceName + "/" + resourceTypeName + ")"
121                        + " [ID: " + ((CommunicationLinkReliabilityParameter)object).getId() + "]"
122                        + " <" + getString("_UI_CommunicationLinkReliabilityParameter_type") + ">";
123        }
124 
125        /**
126         * This handles model notifications by calling {@link #updateChildren} to update any cached
127         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
128         * <!-- begin-user-doc -->
129         * <!-- end-user-doc -->
130         * @generated
131         */
132        @Override
133        public void notifyChanged(Notification notification) {
134                updateChildren(notification);
135                super.notifyChanged(notification);
136        }
137 
138        /**
139         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
140         * that can be created under this object.
141         * <!-- begin-user-doc -->
142         * <!-- end-user-doc -->
143         * @generated
144         */
145        @Override
146        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
147                super.collectNewChildDescriptors(newChildDescriptors, object);
148        }
149 
150}

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