1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package EMOF.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 EMOF.ReflectiveSequence} object. |
25 | * <!-- begin-user-doc --> |
26 | * <!-- end-user-doc --> |
27 | * @generated |
28 | */ |
29 | public class ReflectiveSequenceItemProvider |
30 | extends ReflectiveCollectionItemProvider |
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 ReflectiveSequenceItemProvider(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 ReflectiveSequence.gif. |
64 | * <!-- begin-user-doc --> |
65 | * <!-- end-user-doc --> |
66 | * @generated |
67 | */ |
68 | @Override |
69 | public Object getImage(Object object) { |
70 | return overlayImage(object, getResourceLocator().getImage("full/obj16/ReflectiveSequence")); |
71 | } |
72 | |
73 | /** |
74 | * This returns the label text for the adapted class. |
75 | * <!-- begin-user-doc --> |
76 | * <!-- end-user-doc --> |
77 | * @generated |
78 | */ |
79 | @Override |
80 | public String getText(Object object) { |
81 | return getString("_UI_ReflectiveSequence_type"); |
82 | } |
83 | |
84 | /** |
85 | * This handles model notifications by calling {@link #updateChildren} to update any cached |
86 | * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. |
87 | * <!-- begin-user-doc --> |
88 | * <!-- end-user-doc --> |
89 | * @generated |
90 | */ |
91 | @Override |
92 | public void notifyChanged(Notification notification) { |
93 | updateChildren(notification); |
94 | super.notifyChanged(notification); |
95 | } |
96 | |
97 | /** |
98 | * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children |
99 | * that can be created under this object. |
100 | * <!-- begin-user-doc --> |
101 | * <!-- end-user-doc --> |
102 | * @generated |
103 | */ |
104 | @Override |
105 | protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { |
106 | super.collectNewChildDescriptors(newChildDescriptors, object); |
107 | } |
108 | |
109 | } |