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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class RequiredDelegationConnectorItemProvider0%   (0/1)0%   (0/9)0%   (0/153)0%   (0/60)
RequiredDelegationConnectorItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addAssemblyContext_RequiredDelegationConnectorPropertyDescriptor (Object): void 0%   (0/1)0%   (0/28)0%   (0/14)
addInnerRequiredRole_RequiredDelegationConnectorPropertyDescriptor (Object): ... 0%   (0/1)0%   (0/28)0%   (0/14)
addOuterRequiredRole_RequiredDelegationConnectorPropertyDescriptor (Object): ... 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;
22 
23import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
24import de.uka.ipd.sdq.pcm.core.composition.RequiredDelegationConnector;
25import de.uka.ipd.sdq.pcm.core.provider.PalladioComponentModelEditPlugin;
26import de.uka.ipd.sdq.pcm.repository.provider.DelegationConnectorItemProvider;
27 
28/**
29 * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.core.composition.RequiredDelegationConnector} object.
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34public class RequiredDelegationConnectorItemProvider
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 RequiredDelegationConnectorItemProvider(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                        addInnerRequiredRole_RequiredDelegationConnectorPropertyDescriptor(object);
71                        addOuterRequiredRole_RequiredDelegationConnectorPropertyDescriptor(object);
72                        addAssemblyContext_RequiredDelegationConnectorPropertyDescriptor(object);
73                }
74                return itemPropertyDescriptors;
75        }
76 
77        /**
78         * This adds a property descriptor for the Inner Required Role Required Delegation Connector feature.
79         * <!-- begin-user-doc -->
80         * <!-- end-user-doc -->
81         * @generated
82         */
83        protected void addInnerRequiredRole_RequiredDelegationConnectorPropertyDescriptor(Object object) {
84                itemPropertyDescriptors.add
85                        (createItemPropertyDescriptor
86                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
87                                 getResourceLocator(),
88                                 getString("_UI_RequiredDelegationConnector_innerRequiredRole_RequiredDelegationConnector_feature"),
89                                 getString("_UI_PropertyDescriptor_description", "_UI_RequiredDelegationConnector_innerRequiredRole_RequiredDelegationConnector_feature", "_UI_RequiredDelegationConnector_type"),
90                                 CompositionPackage.Literals.REQUIRED_DELEGATION_CONNECTOR__INNER_REQUIRED_ROLE_REQUIRED_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 Required Role Required Delegation Connector feature.
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @generated
104         */
105        protected void addOuterRequiredRole_RequiredDelegationConnectorPropertyDescriptor(Object object) {
106                itemPropertyDescriptors.add
107                        (createItemPropertyDescriptor
108                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
109                                 getResourceLocator(),
110                                 getString("_UI_RequiredDelegationConnector_outerRequiredRole_RequiredDelegationConnector_feature"),
111                                 getString("_UI_PropertyDescriptor_description", "_UI_RequiredDelegationConnector_outerRequiredRole_RequiredDelegationConnector_feature", "_UI_RequiredDelegationConnector_type"),
112                                 CompositionPackage.Literals.REQUIRED_DELEGATION_CONNECTOR__OUTER_REQUIRED_ROLE_REQUIRED_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 Required Delegation Connector feature.
123         * <!-- begin-user-doc -->
124         * <!-- end-user-doc -->
125         * @generated
126         */
127        protected void addAssemblyContext_RequiredDelegationConnectorPropertyDescriptor(Object object) {
128                itemPropertyDescriptors.add
129                        (createItemPropertyDescriptor
130                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
131                                 getResourceLocator(),
132                                 getString("_UI_RequiredDelegationConnector_assemblyContext_RequiredDelegationConnector_feature"),
133                                 getString("_UI_PropertyDescriptor_description", "_UI_RequiredDelegationConnector_assemblyContext_RequiredDelegationConnector_feature", "_UI_RequiredDelegationConnector_type"),
134                                 CompositionPackage.Literals.REQUIRED_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_REQUIRED_DELEGATION_CONNECTOR,
135                                 true,
136                                 false,
137                                 true,
138                                 null,
139                                 null,
140                                 null));
141        }
142 
143        /**
144         * This returns RequiredDelegationConnector.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/RequiredDelegationConnector"));
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 = ((RequiredDelegationConnector)object).getId();
163                return label == null || label.length() == 0 ?
164                        getString("_UI_RequiredDelegationConnector_type") :
165                        getString("_UI_RequiredDelegationConnector_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