capint
10/16/2015 - 10:23 AM

EMF >> ItemProvider >> ItemProviderAdapter

EMF >> ItemProvider >> ItemProviderAdapter

>> This adapter implementation provides a convenient reusable base for adapters that will be used as item providers (XXXItemProvider).
>> Some basic base classes whose methods are implemented are: IItemLabelProvider, IItemPropertySource, IStructuredItemContentProvider, ITreeItemContentProvider, and IEditingDomainItemProvider.
>> Example: public class XXXItemProvider extends ItemProviderAdapter
        implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
        
>> editingDomainItemProvider can be retrieved using adapterFactory.adapt as follows
   IEditingDomainItemProvider editingDomainItemProvider = 
      (IEditingDomainItemProvider)
        adapterFactory.adapt(object, IEditingDomainItemProvider.class);