001: /**
002: * <copyright>
003: * </copyright>
004: *
005: * $Id$
006: */package newprocess.provider;
007:
008: import java.util.Collection;
009: import java.util.List;
010:
011: import org.eclipse.emf.common.notify.AdapterFactory;
012: import org.eclipse.emf.common.notify.Notification;
013:
014: import org.eclipse.emf.common.util.ResourceLocator;
015:
016: import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
017: import org.eclipse.emf.edit.provider.IItemLabelProvider;
018: import org.eclipse.emf.edit.provider.IItemPropertySource;
019: import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
020: import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
021: import org.eclipse.emf.edit.provider.ItemProviderAdapter;
022:
023: /**
024: * This is the item provider adapter for a {@link newprocess.Term} object.
025: * <!-- begin-user-doc -->
026: * <!-- end-user-doc -->
027: * @generated
028: */
029: public class TermItemProvider extends ItemProviderAdapter implements
030: IEditingDomainItemProvider, IStructuredItemContentProvider,
031: ITreeItemContentProvider, IItemLabelProvider,
032: IItemPropertySource {
033: /**
034: * This constructs an instance from a factory and a notifier.
035: * <!-- begin-user-doc -->
036: * <!-- end-user-doc -->
037: * @generated
038: */
039: public TermItemProvider(AdapterFactory adapterFactory) {
040: super (adapterFactory);
041: }
042:
043: /**
044: * This returns the property descriptors for the adapted class.
045: * <!-- begin-user-doc -->
046: * <!-- end-user-doc -->
047: * @generated
048: */
049: public List getPropertyDescriptors(Object object) {
050: if (itemPropertyDescriptors == null) {
051: super .getPropertyDescriptors(object);
052:
053: }
054: return itemPropertyDescriptors;
055: }
056:
057: /**
058: * This returns Term.gif.
059: * <!-- begin-user-doc -->
060: * <!-- end-user-doc -->
061: * @generated
062: */
063: public Object getImage(Object object) {
064: return overlayImage(object, getResourceLocator().getImage(
065: "full/obj16/Term"));
066: }
067:
068: /**
069: * This returns the label text for the adapted class.
070: * <!-- begin-user-doc -->
071: * <!-- end-user-doc -->
072: * @generated
073: */
074: public String getText(Object object) {
075: return getString("_UI_Term_type");
076: }
077:
078: /**
079: * This handles model notifications by calling {@link #updateChildren} to update any cached
080: * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
081: * <!-- begin-user-doc -->
082: * <!-- end-user-doc -->
083: * @generated
084: */
085: public void notifyChanged(Notification notification) {
086: updateChildren(notification);
087: super .notifyChanged(notification);
088: }
089:
090: /**
091: * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
092: * describing all of the children that can be created under this object.
093: * <!-- begin-user-doc -->
094: * <!-- end-user-doc -->
095: * @generated
096: */
097: protected void collectNewChildDescriptors(
098: Collection newChildDescriptors, Object object) {
099: super .collectNewChildDescriptors(newChildDescriptors, object);
100: }
101:
102: /**
103: * Return the resource locator for this item provider's resources.
104: * <!-- begin-user-doc -->
105: * <!-- end-user-doc -->
106: * @generated
107: */
108: public ResourceLocator getResourceLocator() {
109: return New_processEditPlugin.INSTANCE;
110: }
111:
112: }
|