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