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

COVERAGE SUMMARY FOR SOURCE FILE [CallActionItemProvider.java]

nameclass, %method, %block, %line, %
CallActionItemProvider.java0%   (0/1)0%   (0/8)0%   (0/75)0%   (0/24)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CallActionItemProvider0%   (0/1)0%   (0/8)0%   (0/75)0%   (0/24)
CallActionItemProvider (AdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)
collectNewChildDescriptors (Collection, Object): void 0%   (0/1)0%   (0/13)0%   (0/6)
getChildFeature (Object, Object): EStructuralFeature 0%   (0/1)0%   (0/5)0%   (0/1)
getChildrenFeatures (Object): Collection 0%   (0/1)0%   (0/15)0%   (0/4)
getPropertyDescriptors (Object): List 0%   (0/1)0%   (0/10)0%   (0/3)
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/22)0%   (0/6)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.seff.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.ecore.EStructuralFeature;
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;
23import org.eclipse.emf.edit.provider.ViewerNotification;
24 
25import de.uka.ipd.sdq.pcm.core.provider.PalladioComponentModelEditPlugin;
26import de.uka.ipd.sdq.pcm.parameter.ParameterFactory;
27import de.uka.ipd.sdq.pcm.seff.CallAction;
28import de.uka.ipd.sdq.pcm.seff.SeffPackage;
29 
30/**
31 * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.seff.CallAction} object.
32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc -->
34 * @generated
35 */
36public class CallActionItemProvider
37        extends ItemProviderAdapter
38        implements
39                IEditingDomainItemProvider,
40                IStructuredItemContentProvider,
41                ITreeItemContentProvider,
42                IItemLabelProvider,
43                IItemPropertySource {
44        /**
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @generated
48         */
49        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
50 
51        /**
52         * This constructs an instance from a factory and a notifier.
53         * <!-- begin-user-doc -->
54         * <!-- end-user-doc -->
55         * @generated
56         */
57        public CallActionItemProvider(AdapterFactory adapterFactory) {
58                super(adapterFactory);
59        }
60 
61        /**
62         * This returns the property descriptors for the adapted class.
63         * <!-- begin-user-doc -->
64         * <!-- end-user-doc -->
65         * @generated
66         */
67        @Override
68        public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
69                if (itemPropertyDescriptors == null) {
70                        super.getPropertyDescriptors(object);
71 
72                }
73                return itemPropertyDescriptors;
74        }
75 
76        /**
77         * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
78         * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
79         * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @generated
83         */
84        @Override
85        public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
86                if (childrenFeatures == null) {
87                        super.getChildrenFeatures(object);
88                        childrenFeatures.add(SeffPackage.Literals.CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION);
89                }
90                return childrenFeatures;
91        }
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        @Override
99        protected EStructuralFeature getChildFeature(Object object, Object child) {
100                // Check the type of the specified child object and return the proper feature to use for
101                // adding (see {@link AddCommand}) it as a child.
102 
103                return super.getChildFeature(object, child);
104        }
105 
106        /**
107         * This returns the label text for the adapted class.
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        @Override
113        public String getText(Object object) {
114                return getString("_UI_CallAction_type");
115        }
116 
117        /**
118         * This handles model notifications by calling {@link #updateChildren} to update any cached
119         * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @generated
123         */
124        @Override
125        public void notifyChanged(Notification notification) {
126                updateChildren(notification);
127 
128                switch (notification.getFeatureID(CallAction.class)) {
129                        case SeffPackage.CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION:
130                                fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
131                                return;
132                }
133                super.notifyChanged(notification);
134        }
135 
136        /**
137         * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
138         * that can be created under this object.
139         * <!-- begin-user-doc -->
140         * <!-- end-user-doc -->
141         * @generated
142         */
143        @Override
144        protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
145                super.collectNewChildDescriptors(newChildDescriptors, object);
146 
147                newChildDescriptors.add
148                        (createChildParameter
149                                (SeffPackage.Literals.CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION,
150                                 ParameterFactory.eINSTANCE.createVariableUsage()));
151        }
152 
153        /**
154         * Return the resource locator for this item provider's resources.
155         * <!-- begin-user-doc -->
156         * <!-- end-user-doc -->
157         * @generated
158         */
159        @Override
160        public ResourceLocator getResourceLocator() {
161                return PalladioComponentModelEditPlugin.INSTANCE;
162        }
163 
164}

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