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