1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.pcm.designdecision.provider; |
8 | |
9 | |
10 | import de.uka.ipd.sdq.pcm.designdecision.NumberOfCoresDegree; |
11 | import de.uka.ipd.sdq.pcm.designdecision.designdecisionPackage; |
12 | |
13 | import java.util.Collection; |
14 | import java.util.List; |
15 | |
16 | import org.eclipse.emf.common.notify.AdapterFactory; |
17 | import org.eclipse.emf.common.notify.Notification; |
18 | |
19 | import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; |
20 | import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; |
21 | import org.eclipse.emf.edit.provider.IItemLabelProvider; |
22 | import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; |
23 | import org.eclipse.emf.edit.provider.IItemPropertySource; |
24 | import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; |
25 | import org.eclipse.emf.edit.provider.ITreeItemContentProvider; |
26 | |
27 | /** |
28 | * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.designdecision.NumberOfCoresDegree} object. |
29 | * <!-- begin-user-doc --> |
30 | * <!-- end-user-doc --> |
31 | * @generated |
32 | */ |
33 | public class NumberOfCoresDegreeItemProvider |
34 | extends ProcessingResourceDegreeItemProvider |
35 | implements |
36 | IEditingDomainItemProvider, |
37 | IStructuredItemContentProvider, |
38 | ITreeItemContentProvider, |
39 | IItemLabelProvider, |
40 | IItemPropertySource { |
41 | /** |
42 | * This constructs an instance from a factory and a notifier. |
43 | * <!-- begin-user-doc --> |
44 | * <!-- end-user-doc --> |
45 | * @generated |
46 | */ |
47 | public NumberOfCoresDegreeItemProvider(AdapterFactory adapterFactory) { |
48 | super(adapterFactory); |
49 | } |
50 | |
51 | /** |
52 | * This returns the property descriptors for the adapted class. |
53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> |
55 | * @generated |
56 | */ |
57 | @Override |
58 | public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { |
59 | if (itemPropertyDescriptors == null) { |
60 | super.getPropertyDescriptors(object); |
61 | |
62 | } |
63 | return itemPropertyDescriptors; |
64 | } |
65 | |
66 | /** |
67 | * This returns NumberOfCoresDegree.gif. |
68 | * <!-- begin-user-doc --> |
69 | * <!-- end-user-doc --> |
70 | * @generated |
71 | */ |
72 | @Override |
73 | public Object getImage(Object object) { |
74 | return overlayImage(object, getResourceLocator().getImage("full/obj16/NumberOfCoresDegree")); |
75 | } |
76 | |
77 | /** |
78 | * This returns the label text for the adapted class. |
79 | * <!-- begin-user-doc --> |
80 | * <!-- end-user-doc --> |
81 | * @generated |
82 | */ |
83 | @Override |
84 | public String getText(Object object) { |
85 | return getString("_UI_NumberOfCoresDegree_type"); |
86 | } |
87 | |
88 | /** |
89 | * This handles model notifications by calling {@link #updateChildren} to update any cached |
90 | * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. |
91 | * <!-- begin-user-doc --> |
92 | * <!-- end-user-doc --> |
93 | * @generated |
94 | */ |
95 | @Override |
96 | public void notifyChanged(Notification notification) { |
97 | updateChildren(notification); |
98 | super.notifyChanged(notification); |
99 | } |
100 | |
101 | /** |
102 | * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children |
103 | * that can be created under this object. |
104 | * <!-- begin-user-doc --> |
105 | * <!-- end-user-doc --> |
106 | * @generated |
107 | */ |
108 | @Override |
109 | protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { |
110 | super.collectNewChildDescriptors(newChildDescriptors, object); |
111 | } |
112 | |
113 | } |