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

nameclass, %method, %block, %line, %
ProvidedInfrastructureDelegationConnectorItemProvider.java0%   (0/1)0%   (0/9)0%   (0/153)0%   (0/60)

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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