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 MappingStrategyItemProvider 37 extends MappingHelperItemProvider 38 implements 39 IEditingDomainItemProvider, 40 IStructuredItemContentProvider, 41 ITreeItemContentProvider, 42 IItemLabelProvider, 43 IItemPropertySource 44 { 45 48 public MappingStrategyItemProvider(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 68 public Object getImage(Object object) 69 { 70 return MappingPlugin.getPlugin().getImage("full/obj16/MappingStrategy"); 71 } 72 73 public String getText(Object object) 74 { 75 return "MappingStrategy"; 76 } 77 78 81 public void notifyChanged(Notification msg) 82 { 83 super.notifyChanged(msg); 84 } 85 86 92 public ResourceLocator getResourceLocator() 93 { 94 return MappingPlugin.INSTANCE; 95 } 96 97 } 98 | Popular Tags |