Class DiffItemProvider

All Implemented Interfaces:
Adapter, Adapter.Internal, ResourceLocator, CreateChildCommand.Helper, IChangeNotifier, IDisposable, IEditingDomainItemProvider, IItemColorProvider, IItemFontProvider, IItemLabelProvider, IItemPropertySource, IStructuredItemContentProvider, ITreeItemContentProvider
Direct Known Subclasses:
AttributeChangeItemProvider, FeatureMapChangeItemProvider, ReferenceChangeItemProvider, ResourceAttachmentChangeItemProvider, ResourceLocationChangeItemProvider

This is the item provider adapter for a Diff object.
Generated:
  • Field Details

  • Constructor Details

    • DiffItemProvider

      public DiffItemProvider(AdapterFactory adapterFactory)
      This constructs an instance from a factory and a notifier.
      Generated:
  • Method Details

    • getPropertyDescriptors

      public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
      This returns the property descriptors for the adapted class.
      Specified by:
      getPropertyDescriptors in interface IItemPropertySource
      Overrides:
      getPropertyDescriptors in class ItemProviderAdapter
      Generated:
    • addRequiresPropertyDescriptor

      protected void addRequiresPropertyDescriptor(Object object)
      This adds a property descriptor for the Requires feature.
      Generated:
    • addRequiredByPropertyDescriptor

      protected void addRequiredByPropertyDescriptor(Object object)
      This adds a property descriptor for the Required By feature.
      Generated:
    • addImpliesPropertyDescriptor

      protected void addImpliesPropertyDescriptor(Object object)
      This adds a property descriptor for the Implies feature.
      Generated:
    • addImpliedByPropertyDescriptor

      protected void addImpliedByPropertyDescriptor(Object object)
      This adds a property descriptor for the Implied By feature.
      Since:
      4.0
      Generated:
    • addRefinesPropertyDescriptor

      protected void addRefinesPropertyDescriptor(Object object)
      This adds a property descriptor for the Refines feature.
      Generated:
    • addRefinedByPropertyDescriptor

      protected void addRefinedByPropertyDescriptor(Object object)
      This adds a property descriptor for the Refined By feature.
      Generated:
    • addPrimeRefiningPropertyDescriptor

      protected void addPrimeRefiningPropertyDescriptor(Object object)
      This adds a property descriptor for the Prime Refining feature.
      Generated:
    • addKindPropertyDescriptor

      protected void addKindPropertyDescriptor(Object object)
      This adds a property descriptor for the Kind feature.
      Generated:
    • addSourcePropertyDescriptor

      protected void addSourcePropertyDescriptor(Object object)
      This adds a property descriptor for the Source feature.
      Generated:
    • addStatePropertyDescriptor

      protected void addStatePropertyDescriptor(Object object)
      This adds a property descriptor for the State feature.
      Generated:
    • addEquivalencePropertyDescriptor

      protected void addEquivalencePropertyDescriptor(Object object)
      This adds a property descriptor for the Equivalence feature.
      Generated:
    • addConflictPropertyDescriptor

      protected void addConflictPropertyDescriptor(Object object)
      This adds a property descriptor for the Conflict feature.
      Generated:
    • getImage

      public Object getImage(Object object)
      This returns Diff.gif.
      Specified by:
      getImage in interface IItemLabelProvider
      Overrides:
      getImage in class ItemProviderAdapter
      Generated:
    • getText

      public String getText(Object object)
      This returns the label text for the adapted class.
      Specified by:
      getText in interface IItemLabelProvider
      Overrides:
      getText in class ItemProviderAdapter
      Generated:
    • notifyChanged

      public void notifyChanged(Notification notification)
      This handles model notifications by calling ItemProviderAdapter.updateChildren(org.eclipse.emf.common.notify.Notification) to update any cached children and by creating a viewer notification, which it passes to ItemProviderAdapter.fireNotifyChanged(org.eclipse.emf.common.notify.Notification).
      Specified by:
      notifyChanged in interface Adapter
      Overrides:
      notifyChanged in class AdapterImpl
      Generated:
    • collectNewChildDescriptors

      protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object)
      This adds CommandParameters describing the children that can be created under this object.
      Overrides:
      collectNewChildDescriptors in class ItemProviderAdapter
      Generated:
    • getResourceLocator

      public ResourceLocator getResourceLocator()
      Return the resource locator for this item provider's resources.
      Overrides:
      getResourceLocator in class ItemProviderAdapter
      Generated: