org.eclipse.emf.ecore.provider
Class EStringToStringMapEntryItemProvider

java.lang.Object
  |
  +--org.eclipse.emf.common.notify.impl.AdapterImpl
        |
        +--org.eclipse.emf.edit.provider.ItemProviderAdapter
              |
              +--org.eclipse.emf.ecore.provider.EStringToStringMapEntryItemProvider
All Implemented Interfaces:
Adapter, CreateChildCommand.Helper, IChangeNotifier, IDisposable, IEditingDomainItemProvider, IItemLabelProvider, IItemPropertySource, IStructuredItemContentProvider, ITreeItemContentProvider, ResourceLocator

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

This is the item provider adpater for a Map.Entry object.


Fields inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
adapterFactory, changeNotifier, childrenReferences, itemPropertyDescriptors, targets
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
EStringToStringMapEntryItemProvider(AdapterFactory adapterFactory)
          This constructs an instance from a factory and a notifier.
 
Method Summary
protected  void addKeyPropertyDescriptor(java.lang.Object object)
          This adds a property descriptor for the Key feature.
protected  void addValuePropertyDescriptor(java.lang.Object object)
          This adds a property descriptor for the Value feature.
protected  void collectNewChildDescriptors(java.util.Collection newChildDescriptors, java.lang.Object object)
          This adds to the collection of CommandParameters describing all of the children that can be created under this object.
 java.lang.Object getImage(java.lang.Object object)
          This returns EStringToStringMapEntry.gif.
 java.util.List getPropertyDescriptors(java.lang.Object object)
          This returns the property descriptors for the adapted class.
 ResourceLocator getResourceLocator()
          Return the resource locator for this item provider's resources.
 java.lang.String getText(java.lang.Object object)
          This returns the label text for the adapted class.
 void notifyChanged(Notification notification)
          This handles notification by calling fireNotifyChanged.
 
Methods inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
addListener, createAddCommand, createChildParameter, createCommand, createCopyCommand, createCreateChildCommand, createCreateCopyCommand, createDragAndDropCommand, createInitializeCopyCommand, createMoveCommand, createRemoveCommand, createReplaceCommand, createSetCommand, dispose, factorAddCommand, factorMoveCommand, factorRemoveCommand, fireNotifyChanged, getAdapterFactory, getBaseURL, getChildReference, getChildren, getChildrenReferences, getCreateChildDescription, getCreateChildImage, getCreateChildResult, getCreateChildText, getCreateChildToolTipText, getEditableValue, getElements, getFeatureText, getImage, getNewChildDescriptors, getParent, getPropertyDescriptor, getPropertyValue, getReferenceValue, getResourceLocator, getSetFeature, getSetFeatures, getString, getString, getString, getString, getTypeText, getUpdateableText, hasChildren, isAdapterForType, isPropertySet, removeListener, resetPropertyValue, setPropertyValue, setTarget
 
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
 

Constructor Detail

EStringToStringMapEntryItemProvider

public EStringToStringMapEntryItemProvider(AdapterFactory adapterFactory)
This constructs an instance from a factory and a notifier.
Method Detail

getPropertyDescriptors

public java.util.List getPropertyDescriptors(java.lang.Object object)
This returns the property descriptors for the adapted class.
Specified by:
getPropertyDescriptors in interface IItemPropertySource
Overrides:
getPropertyDescriptors in class ItemProviderAdapter

addKeyPropertyDescriptor

protected void addKeyPropertyDescriptor(java.lang.Object object)
This adds a property descriptor for the Key feature.

addValuePropertyDescriptor

protected void addValuePropertyDescriptor(java.lang.Object object)
This adds a property descriptor for the Value feature.

getImage

public java.lang.Object getImage(java.lang.Object object)
This returns EStringToStringMapEntry.gif.
Specified by:
getImage in interface IItemLabelProvider
Overrides:
getImage in class ItemProviderAdapter

getText

public java.lang.String getText(java.lang.Object object)
This returns the label text for the adapted class.
Specified by:
getText in interface IItemLabelProvider
Overrides:
getText in class ItemProviderAdapter

notifyChanged

public void notifyChanged(Notification notification)
This handles notification by calling fireNotifyChanged.
Overrides:
notifyChanged in class AdapterImpl
Following copied from interface: org.eclipse.emf.common.notify.Adapter
Parameters:
notification - a description of the change.

collectNewChildDescriptors

protected void collectNewChildDescriptors(java.util.Collection newChildDescriptors,
                                          java.lang.Object object)
This adds to the collection of CommandParameters describing all of the children that can be created under this object.
Overrides:
collectNewChildDescriptors in class ItemProviderAdapter

getResourceLocator

public ResourceLocator getResourceLocator()
Return the resource locator for this item provider's resources.
Overrides:
getResourceLocator in class ItemProviderAdapter

Copyright 2001-2003 IBM Corporation and others.
All Rights Reserved.