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

COVERAGE SUMMARY FOR SOURCE FILE [AbstractUserActionItemProvider.java]

nameclass, %method, %block, %line, %
AbstractUserActionItemProvider.java0%   (0/1)0%   (0/8)0%   (0/116)0%   (0/45)

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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