1 17 package org.eclipse.emf.mapping.provider; 18 19 20 import java.util.List ; 21 22 import org.eclipse.emf.common.notify.AdapterFactory; 23 import org.eclipse.emf.common.notify.Notification; 24 import org.eclipse.emf.common.util.ResourceLocator; 25 import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; 26 import org.eclipse.emf.edit.provider.IItemLabelProvider; 27 import org.eclipse.emf.edit.provider.IItemPropertySource; 28 import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; 29 import org.eclipse.emf.edit.provider.ITreeItemContentProvider; 30 import org.eclipse.emf.mapping.MappingPlugin; 31 32 33 36 public class TypeConverterItemProvider 37 extends MappingHelperItemProvider 38 implements 39 IEditingDomainItemProvider, 40 IStructuredItemContentProvider, 41 ITreeItemContentProvider, 42 IItemLabelProvider, 43 IItemPropertySource 44 { 45 48 public TypeConverterItemProvider(AdapterFactory adapterFactory) 49 { 50 super(adapterFactory); 51 } 52 53 56 public List getPropertyDescriptors(Object object) 57 { 58 if (itemPropertyDescriptors == null) 59 { 60 super.getPropertyDescriptors(object); 61 } 62 return itemPropertyDescriptors; 63 } 64 65 71 public String getText(Object object) 72 { 73 return super.getText(object); 74 } 75 76 79 public void notifyChanged(Notification msg) 80 { 81 super.notifyChanged(msg); 82 } 83 84 90 public ResourceLocator getResourceLocator() 91 { 92 return MappingPlugin.INSTANCE; 93 } 94 95 } 96 | Popular Tags |