| 1 | /** |
| 2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.pcm.repository.provider; |
| 7 | |
| 8 | |
| 9 | import java.util.Collection; |
| 10 | |
| 11 | import org.eclipse.emf.common.notify.AdapterFactory; |
| 12 | import org.eclipse.emf.common.notify.Notification; |
| 13 | import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; |
| 14 | import org.eclipse.emf.edit.provider.IItemLabelProvider; |
| 15 | import org.eclipse.emf.edit.provider.IItemPropertySource; |
| 16 | import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; |
| 17 | import org.eclipse.emf.edit.provider.ITreeItemContentProvider; |
| 18 | |
| 19 | /** |
| 20 | * This is the item provider adapter for a {@link de.uka.ipd.sdq.pcm.repository.ResourceRequiredRole} object. |
| 21 | * <!-- begin-user-doc --> |
| 22 | * <!-- end-user-doc --> |
| 23 | * @generated |
| 24 | */ |
| 25 | public class ResourceRequiredRoleItemProvider |
| 26 | extends RoleItemProvider |
| 27 | implements |
| 28 | IEditingDomainItemProvider, |
| 29 | IStructuredItemContentProvider, |
| 30 | ITreeItemContentProvider, |
| 31 | IItemLabelProvider, |
| 32 | IItemPropertySource { |
| 33 | /** |
| 34 | * <!-- begin-user-doc --> |
| 35 | * <!-- end-user-doc --> |
| 36 | * @generated |
| 37 | */ |
| 38 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 39 | |
| 40 | /** |
| 41 | * This constructs an instance from a factory and a notifier. |
| 42 | * <!-- begin-user-doc --> |
| 43 | * <!-- end-user-doc --> |
| 44 | * @generated |
| 45 | */ |
| 46 | public ResourceRequiredRoleItemProvider(AdapterFactory adapterFactory) { |
| 47 | super(adapterFactory); |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * This returns ResourceRequiredRole.gif. |
| 52 | * <!-- begin-user-doc --> |
| 53 | * <!-- end-user-doc --> |
| 54 | * @generated |
| 55 | */ |
| 56 | @Override |
| 57 | public Object getImage(Object object) { |
| 58 | return overlayImage(object, getResourceLocator().getImage("full/obj16/ResourceRequiredRole")); |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * This handles model notifications by calling {@link #updateChildren} to update any cached |
| 63 | * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. |
| 64 | * <!-- begin-user-doc --> |
| 65 | * <!-- end-user-doc --> |
| 66 | * @generated |
| 67 | */ |
| 68 | @Override |
| 69 | public void notifyChanged(Notification notification) { |
| 70 | updateChildren(notification); |
| 71 | super.notifyChanged(notification); |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children |
| 76 | * that can be created under this object. |
| 77 | * <!-- begin-user-doc --> |
| 78 | * <!-- end-user-doc --> |
| 79 | * @generated |
| 80 | */ |
| 81 | @Override |
| 82 | protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { |
| 83 | super.collectNewChildDescriptors(newChildDescriptors, object); |
| 84 | } |
| 85 | |
| 86 | } |