1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.seff.provider; |
7 | |
8 | |
9 | import java.util.Collection; |
10 | import java.util.List; |
11 | |
12 | import org.eclipse.emf.common.notify.AdapterFactory; |
13 | import org.eclipse.emf.common.notify.Notification; |
14 | import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; |
15 | import org.eclipse.emf.edit.provider.IItemLabelProvider; |
16 | import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; |
17 | import org.eclipse.emf.edit.provider.IItemPropertySource; |
18 | import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; |
19 | import org.eclipse.emf.edit.provider.ITreeItemContentProvider; |
20 | |
21 | /** |
22 | * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.seff.ResourceDemandingInternalBehaviour} object. |
23 | * <!-- begin-user-doc --> |
24 | * <!-- end-user-doc --> |
25 | * @generated |
26 | */ |
27 | public class ResourceDemandingInternalBehaviourItemProvider |
28 | extends ResourceDemandingBehaviourItemProvider |
29 | implements |
30 | IEditingDomainItemProvider, |
31 | IStructuredItemContentProvider, |
32 | ITreeItemContentProvider, |
33 | IItemLabelProvider, |
34 | IItemPropertySource { |
35 | /** |
36 | * <!-- begin-user-doc --> |
37 | * <!-- end-user-doc --> |
38 | * @generated |
39 | */ |
40 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
41 | |
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 ResourceDemandingInternalBehaviourItemProvider(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 ResourceDemandingInternalBehaviour.gif. |
69 | * <!-- begin-user-doc --> |
70 | * <!-- end-user-doc --> |
71 | * @generated |
72 | */ |
73 | @Override |
74 | public Object getImage(Object object) { |
75 | return overlayImage(object, getResourceLocator().getImage("full/obj16/ResourceDemandingInternalBehaviour")); |
76 | } |
77 | |
78 | /** |
79 | * This returns the label text for the adapted class. |
80 | * <!-- begin-user-doc --> |
81 | * <!-- end-user-doc --> |
82 | * @generated |
83 | */ |
84 | @Override |
85 | public String getText(Object object) { |
86 | return getString("_UI_ResourceDemandingInternalBehaviour_type"); |
87 | } |
88 | |
89 | /** |
90 | * This handles model notifications by calling {@link #updateChildren} to update any cached |
91 | * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. |
92 | * <!-- begin-user-doc --> |
93 | * <!-- end-user-doc --> |
94 | * @generated |
95 | */ |
96 | @Override |
97 | public void notifyChanged(Notification notification) { |
98 | updateChildren(notification); |
99 | super.notifyChanged(notification); |
100 | } |
101 | |
102 | /** |
103 | * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children |
104 | * that can be created under this object. |
105 | * <!-- begin-user-doc --> |
106 | * <!-- end-user-doc --> |
107 | * @generated |
108 | */ |
109 | @Override |
110 | protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { |
111 | super.collectNewChildDescriptors(newChildDescriptors, object); |
112 | } |
113 | |
114 | } |