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