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

nameclass, %method, %block, %line, %
InnerDeclarationItemProvider.java0%   (0/1)0%   (0/8)0%   (0/93)0%   (0/31)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class InnerDeclarationItemProvider0%   (0/1)0%   (0/8)0%   (0/93)0%   (0/31)
InnerDeclarationItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
addDatatype_InnerDeclarationPropertyDescriptor (Object): void 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)
getResourceLocator (): ResourceLocator 0%   (0/1)0%   (0/2)0%   (0/1)
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.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.entity.provider.NamedElementItemProvider;
24import de.uka.ipd.sdq.pcm.core.provider.PalladioComponentModelEditPlugin;
25import de.uka.ipd.sdq.pcm.repository.InnerDeclaration;
26import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
27 
28/**
29 * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.repository.InnerDeclaration} object.
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34public class InnerDeclarationItemProvider
35        extends NamedElementItemProvider
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 InnerDeclarationItemProvider(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                        addDatatype_InnerDeclarationPropertyDescriptor(object);
71                }
72                return itemPropertyDescriptors;
73        }
74 
75        /**
76         * This adds a property descriptor for the Datatype Inner Declaration feature.
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        protected void addDatatype_InnerDeclarationPropertyDescriptor(Object object) {
82                itemPropertyDescriptors.add
83                        (createItemPropertyDescriptor
84                                (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
85                                 getResourceLocator(),
86                                 getString("_UI_InnerDeclaration_datatype_InnerDeclaration_feature"),
87                                 getString("_UI_PropertyDescriptor_description", "_UI_InnerDeclaration_datatype_InnerDeclaration_feature", "_UI_InnerDeclaration_type"),
88                                 RepositoryPackage.Literals.INNER_DECLARATION__DATATYPE_INNER_DECLARATION,
89                                 true,
90                                 false,
91                                 true,
92                                 null,
93                                 null,
94                                 null));
95        }
96 
97        /**
98         * This returns InnerDeclaration.gif.
99         * <!-- begin-user-doc -->
100         * <!-- end-user-doc -->
101         * @generated
102         */
103        @Override
104        public Object getImage(Object object) {
105                return overlayImage(object, getResourceLocator().getImage("full/obj16/InnerDeclaration"));
106        }
107 
108        /**
109         * This returns the label text for the adapted class.
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @generated
113         */
114        @Override
115        public String getText(Object object) {
116                String label = ((InnerDeclaration)object).getEntityName();
117                return label == null || label.length() == 0 ?
118                        getString("_UI_InnerDeclaration_type") :
119                        getString("_UI_InnerDeclaration_type") + " " + label;
120        }
121 
122        /**
123         * This handles model notifications by calling {@link #updateChildren} to update any cached
124         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
125         * <!-- begin-user-doc -->
126         * <!-- end-user-doc -->
127         * @generated
128         */
129        @Override
130        public void notifyChanged(Notification notification) {
131                updateChildren(notification);
132                super.notifyChanged(notification);
133        }
134 
135        /**
136         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
137         * that can be created under this object.
138         * <!-- begin-user-doc -->
139         * <!-- end-user-doc -->
140         * @generated
141         */
142        @Override
143        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
144                super.collectNewChildDescriptors(newChildDescriptors, object);
145        }
146 
147        /**
148         * Return the resource locator for this item provider's resources.
149         * <!-- begin-user-doc -->
150         * <!-- end-user-doc -->
151         * @generated
152         */
153        @Override
154        public ResourceLocator getResourceLocator() {
155                return PalladioComponentModelEditPlugin.INSTANCE;
156        }
157 
158}

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