1 17 package org.eclipse.emf.ecore.sdo.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.ecore.provider.EObjectItemProvider; 26 import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; 27 import org.eclipse.emf.edit.provider.IItemLabelProvider; 28 import org.eclipse.emf.edit.provider.IItemPropertySource; 29 import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; 30 import org.eclipse.emf.edit.provider.ITreeItemContentProvider; 31 32 33 39 public class EDataObjectItemProvider 40 extends EObjectItemProvider 41 implements 42 IEditingDomainItemProvider, 43 IStructuredItemContentProvider, 44 ITreeItemContentProvider, 45 IItemLabelProvider, 46 IItemPropertySource 47 { 48 54 public EDataObjectItemProvider(AdapterFactory adapterFactory) 55 { 56 super(adapterFactory); 57 } 58 59 65 public List getPropertyDescriptors(Object object) 66 { 67 if (itemPropertyDescriptors == null) 68 { 69 super.getPropertyDescriptors(object); 70 71 } 72 return itemPropertyDescriptors; 73 } 74 75 81 public String getText(Object object) 82 { 83 return getString("_UI_EDataObject_type"); 84 } 85 86 93 public void notifyChanged(Notification notification) 94 { 95 updateChildren(notification); 96 super.notifyChanged(notification); 97 } 98 99 105 public ResourceLocator getResourceLocator() 106 { 107 return SDOEditPlugin.INSTANCE; 108 } 109 110 } 111 | Popular Tags |