Overview

 
Package  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

org.eclipse.emf.edit.provider
Class ReflectiveItemProvider

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.AdapterImpl
      extended byorg.eclipse.emf.edit.provider.ItemProviderAdapter
          extended byorg.eclipse.emf.edit.provider.ReflectiveItemProvider

All Implemented Interfaces:
Adapter, CreateChildCommand.Helper, IChangeNotifier, IDisposable, IEditingDomainItemProvider, IItemLabelProvider, IItemPropertySource, IStructuredItemContentProvider, ITreeItemContentProvider, ResourceLocator


public class ReflectiveItemProvider
extends ItemProviderAdapter
implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource

This adapter implementation provides reflective support that emulates the behaviour of a default generated item provider.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
ItemProviderAdapter.ChildrenStore, ItemProviderAdapter.ModifiableSingletonEList, ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommand, ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate
 
Field Summary
protected  List allEClasses
           
protected  List allRoots
           
 
Fields inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
adapterFactory, changeNotifier, childrenFeatures, childrenReferences, childrenStoreMap, itemPropertyDescriptors, targets, wrappers, wrappingNeeded
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
ReflectiveItemProvider(AdapterFactory adapterFactory)
           
 
Method Summary
protected  void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
          This adds to newChildDescriptors, a collection of CommandParameters, parameters for possible children of the specified object, when viewed as an instance of the type for which this is an item provider.
protected  List getAllConcreteSubclasses(EClass eClass)
           
protected  List getAllEClasses(EClass eClass)
           
protected  Collection getChildrenFeatures(Object object)
          If this is defined to be something other than an empty list, it is used to implement getChildren, including in determining whether to cache children and, if so, in setting up the store.
 Object getCreateChildImage(Object owner, Object feature, Object child, Collection selection)
          This returns the icon image for CreateChildCommand.
protected  String getFeatureText(Object feature)
          This looks up the name of the specified feature.
 Object getImage(Object object)
          This does the same thing as ILabelProvider.getImage, it fetches the label image specific to this object instance.
protected  EStructuralFeature getLabelFeature(EClass eClass)
           
 List getPropertyDescriptors(Object object)
          This does the same thing as IPropertySource.getPropertyDescriptors.
 String getText(Object object)
          This does the same thing as ILabelProvider.getlText, it fetches the label text specific to this object instance.
protected  String getTypeText(Object object)
          This looks up the name of the type of the specified object.
 void notifyChanged(Notification notification)
          Does nothing; clients may override so that it does something.
 
Methods inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
addListener, adjustWrapperIndex, adjustWrapperIndices, adjustWrapperIndices, createAddCommand, createAddCommand, createChildParameter, createChildrenStore, createCommand, createCopyCommand, createCreateChildCommand, createCreateChildCommand, createCreateCopyCommand, createDragAndDropCommand, createInitializeCopyCommand, createMoveCommand, createMoveCommand, createRemoveCommand, createRemoveCommand, createReplaceCommand, createReplaceCommand, createSetCommand, createSetCommand, createWrapper, dispose, disposeWrapper, disposeWrappers, factorAddCommand, factorMoveCommand, factorRemoveCommand, fireNotifyChanged, getAdapterFactory, getBaseURL, getChildFeature, getChildReference, getChildren, getChildrenReferences, getChildrenStore, getCreateChildDescription, getCreateChildResult, getCreateChildText, getCreateChildToolTipText, getEditableValue, getElements, getFeatureValue, getImage, getNewChildDescriptors, getParent, getPropertyDescriptor, getPropertyValue, getReferenceValue, getResourceLocator, getResourceLocator, getRootAdapterFactory, getSetFeature, getSetFeatures, getString, getString, getString, getString, getUpdateableText, getWrappedValues, hasChildren, isAdapterForType, isEquivalentValue, isPropertySet, isWrappingNeeded, removeListener, resetPropertyValue, setPropertyValue, setTarget, unwrap, unwrapCommandValues, updateChildren, wrap, wrapCommand
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.edit.provider.IEditingDomainItemProvider
createCommand, getChildren, getNewChildDescriptors, getParent
 
Methods inherited from interface org.eclipse.emf.edit.provider.IStructuredItemContentProvider
getElements
 
Methods inherited from interface org.eclipse.emf.edit.provider.ITreeItemContentProvider
getChildren, getParent, hasChildren
 
Methods inherited from interface org.eclipse.emf.edit.provider.IItemPropertySource
getEditableValue, getPropertyDescriptor
 

 

Field Detail

 

 

allRoots

protected List allRoots


 

 

allEClasses

protected List allEClasses

Constructor Detail

 

 

ReflectiveItemProvider

public ReflectiveItemProvider(AdapterFactory adapterFactory)

Method Detail

 

 

getPropertyDescriptors

public List getPropertyDescriptors(Object object)

Description copied from interface: IItemPropertySource
This does the same thing as IPropertySource.getPropertyDescriptors.

Specified by:
getPropertyDescriptors in interface IItemPropertySource
Overrides:
getPropertyDescriptors in class ItemProviderAdapter


 

 

getAllEClasses

protected List getAllEClasses(EClass eClass)


 

 

getAllConcreteSubclasses

protected List getAllConcreteSubclasses(EClass eClass)


 

 

getChildrenFeatures

protected Collection getChildrenFeatures(Object object)

Description copied from class: ItemProviderAdapter
If this is defined to be something other than an empty list, it is used to implement getChildren, including in determining whether to cache children and, if so, in setting up the store. It is also used to deduce the appropriate feature for an AddCommand, RemoveCommand or MoveCommand in createCommand. If you override those methods, then you don't need to implement this.

Overrides:
getChildrenFeatures in class ItemProviderAdapter


 

 

getImage

public Object getImage(Object object)

Description copied from interface: IItemLabelProvider
This does the same thing as ILabelProvider.getImage, it fetches the label image specific to this object instance.

Specified by:
getImage in interface IItemLabelProvider
Overrides:
getImage in class ItemProviderAdapter


 

 

getText

public String getText(Object object)

Description copied from interface: IItemLabelProvider
This does the same thing as ILabelProvider.getlText, it fetches the label text specific to this object instance.

Specified by:
getText in interface IItemLabelProvider
Overrides:
getText in class ItemProviderAdapter


 

 

getLabelFeature

protected EStructuralFeature getLabelFeature(EClass eClass)


 

 

collectNewChildDescriptors

protected void collectNewChildDescriptors(Collection newChildDescriptors,
                                          Object object)

Description copied from class: ItemProviderAdapter
This adds to newChildDescriptors, a collection of CommandParameters, parameters for possible children of the specified object, when viewed as an instance of the type for which this is an item provider. This implementation adds nothing to the collection, but derived classes should override this method, invoking the superclass implementation and then adding to the collection.

Overrides:
collectNewChildDescriptors in class ItemProviderAdapter


 

 

getCreateChildImage

public Object getCreateChildImage(Object owner,
                                  Object feature,
                                  Object child,
                                  Collection selection)

Description copied from class: ItemProviderAdapter
This returns the icon image for CreateChildCommand.

Specified by:
getCreateChildImage in interface CreateChildCommand.Helper
Overrides:
getCreateChildImage in class ItemProviderAdapter


 

 

getTypeText

protected String getTypeText(Object object)

Description copied from class: ItemProviderAdapter
This looks up the name of the type of the specified object.

Overrides:
getTypeText in class ItemProviderAdapter


 

 

getFeatureText

protected String getFeatureText(Object feature)

Description copied from class: ItemProviderAdapter
This looks up the name of the specified feature.

Overrides:
getFeatureText in class ItemProviderAdapter


 

 

notifyChanged

public void notifyChanged(Notification notification)

Description copied from class: AdapterImpl
Does nothing; clients may override so that it does something.

Specified by:
notifyChanged in interface Adapter
Overrides:
notifyChanged in class AdapterImpl


 

Overview

 
Package  Use  Tree  Deprecated  Index  Help 
Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD