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

COVERAGE SUMMARY FOR SOURCE FILE [ResourceRequiredDelegationConnectorItemProvider.java]

nameclass, %method, %block, %line, %
ResourceRequiredDelegationConnectorItemProvider.java0%   (0/1)0%   (0/9)0%   (0/102)0%   (0/43)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ResourceRequiredDelegationConnectorItemProvider0%   (0/1)0%   (0/9)0%   (0/102)0%   (0/43)
ResourceRequiredDelegationConnectorItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addInnerResourceRequiredRole_ResourceRequiredDelegationConnectorPropertyDescr... 0%   (0/1)0%   (0/28)0%   (0/14)
addOuterResourceRequiredRole_ResourceRequiredDelegationConnectorPropertyDescr... 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/16)0%   (0/5)
getResourceLocator (): ResourceLocator 0%   (0/1)0%   (0/2)0%   (0/1)
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 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.core.composition.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.common.util.ResourceLocator;
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;
22import org.eclipse.emf.edit.provider.ItemProviderAdapter;
23 
24import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
25import de.uka.ipd.sdq.pcm.core.provider.PalladioComponentModelEditPlugin;
26 
27/**
28 * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.core.composition.ResourceRequiredDelegationConnector} object.
29 * <!-- begin-user-doc -->
30 * <!-- end-user-doc -->
31 * @generated
32 */
33public class ResourceRequiredDelegationConnectorItemProvider
34        extends ItemProviderAdapter
35        implements
36                IEditingDomainItemProvider,
37                IStructuredItemContentProvider,
38                ITreeItemContentProvider,
39                IItemLabelProvider,
40                IItemPropertySource {
41        /**
42         * <!-- begin-user-doc -->
43         * <!-- end-user-doc -->
44         * @generated
45         */
46        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
47 
48        /**
49         * This constructs an instance from a factory and a notifier.
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @generated
53         */
54        public ResourceRequiredDelegationConnectorItemProvider(AdapterFactory adapterFactory) {
55                super(adapterFactory);
56        }
57 
58        /**
59         * This returns the property descriptors for the adapted class.
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @generated
63         */
64        @Override
65        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
66                if (itemPropertyDescriptors == null) {
67                        super.getPropertyDescriptors(object);
68 
69                        addInnerResourceRequiredRole_ResourceRequiredDelegationConnectorPropertyDescriptor(object);
70                        addOuterResourceRequiredRole_ResourceRequiredDelegationConnectorPropertyDescriptor(object);
71                }
72                return itemPropertyDescriptors;
73        }
74 
75        /**
76         * This adds a property descriptor for the Inner Resource Required Role Resource Required Delegation Connector feature.
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        protected void addInnerResourceRequiredRole_ResourceRequiredDelegationConnectorPropertyDescriptor(Object object) {
82                itemPropertyDescriptors.add
83                        (createItemPropertyDescriptor
84                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
85                                 getResourceLocator(),
86                                 getString("_UI_ResourceRequiredDelegationConnector_innerResourceRequiredRole_ResourceRequiredDelegationConnector_feature"),
87                                 getString("_UI_PropertyDescriptor_description", "_UI_ResourceRequiredDelegationConnector_innerResourceRequiredRole_ResourceRequiredDelegationConnector_feature", "_UI_ResourceRequiredDelegationConnector_type"),
88                                 CompositionPackage.Literals.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__INNER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR,
89                                 true,
90                                 false,
91                                 true,
92                                 null,
93                                 null,
94                                 null));
95        }
96 
97        /**
98         * This adds a property descriptor for the Outer Resource Required Role Resource Required Delegation Connector feature.
99         * <!-- begin-user-doc -->
100         * <!-- end-user-doc -->
101         * @generated
102         */
103        protected void addOuterResourceRequiredRole_ResourceRequiredDelegationConnectorPropertyDescriptor(Object object) {
104                itemPropertyDescriptors.add
105                        (createItemPropertyDescriptor
106                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
107                                 getResourceLocator(),
108                                 getString("_UI_ResourceRequiredDelegationConnector_outerResourceRequiredRole_ResourceRequiredDelegationConnector_feature"),
109                                 getString("_UI_PropertyDescriptor_description", "_UI_ResourceRequiredDelegationConnector_outerResourceRequiredRole_ResourceRequiredDelegationConnector_feature", "_UI_ResourceRequiredDelegationConnector_type"),
110                                 CompositionPackage.Literals.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__OUTER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR,
111                                 true,
112                                 false,
113                                 true,
114                                 null,
115                                 null,
116                                 null));
117        }
118 
119        /**
120         * This returns ResourceRequiredDelegationConnector.gif.
121         * <!-- begin-user-doc -->
122         * <!-- end-user-doc -->
123         * @generated
124         */
125        @Override
126        public Object getImage(Object object) {
127                return overlayImage(object, getResourceLocator().getImage("full/obj16/ResourceRequiredDelegationConnector"));
128        }
129 
130        /**
131         * This returns the label text for the adapted class.
132         * <!-- begin-user-doc -->
133         * <!-- end-user-doc -->
134         * @generated
135         */
136        @Override
137        public String getText(Object object) {
138                return getString("_UI_ResourceRequiredDelegationConnector_type");
139        }
140 
141        /**
142         * This handles model notifications by calling {@link #updateChildren} to update any cached
143         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
144         * <!-- begin-user-doc -->
145         * <!-- end-user-doc -->
146         * @generated
147         */
148        @Override
149        public void notifyChanged(Notification notification) {
150                updateChildren(notification);
151                super.notifyChanged(notification);
152        }
153 
154        /**
155         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
156         * that can be created under this object.
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        @Override
162        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
163                super.collectNewChildDescriptors(newChildDescriptors, object);
164        }
165 
166        /**
167         * Return the resource locator for this item provider's resources.
168         * <!-- begin-user-doc -->
169         * <!-- end-user-doc -->
170         * @generated
171         */
172        @Override
173        public ResourceLocator getResourceLocator() {
174                return PalladioComponentModelEditPlugin.INSTANCE;
175        }
176 
177}

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