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