org.eclipse.emf.ecore.provider
Class ETypedElementItemProvider

java.lang.Object
  |
  +--org.eclipse.emf.common.notify.impl.AdapterImpl
        |
        +--org.eclipse.emf.edit.provider.ItemProviderAdapter
              |
              +--org.eclipse.emf.ecore.provider.EObjectItemProvider
                    |
                    +--org.eclipse.emf.ecore.provider.EModelElementItemProvider
                          |
                          +--org.eclipse.emf.ecore.provider.ENamedElementItemProvider
                                |
                                +--org.eclipse.emf.ecore.provider.ETypedElementItemProvider
All Implemented Interfaces:
Adapter, CreateChildCommand.Helper, IChangeNotifier, IDisposable, IEditingDomainItemProvider, IItemLabelProvider, IItemPropertySource, IStructuredItemContentProvider, ITreeItemContentProvider, ResourceLocator
Direct Known Subclasses:
EOperationItemProvider, EParameterItemProvider, EStructuralFeatureItemProvider

public class ETypedElementItemProvider
extends ENamedElementItemProvider
implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource

This is the item provider adpater for a ETypedElement 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
ETypedElementItemProvider(AdapterFactory adapterFactory)
          This constructs an instance from a factory and a notifier.
 
Method Summary
protected  void addETypePropertyDescriptor(java.lang.Object object)
          This adds a property descriptor for the EType 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.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.ecore.provider.ENamedElementItemProvider
addNamePropertyDescriptor
 
Methods inherited from class org.eclipse.emf.ecore.provider.EModelElementItemProvider
getChildrenReferences
 
Methods inherited from class org.eclipse.emf.ecore.provider.EObjectItemProvider
getImage
 
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, 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.IItemLabelProvider
getImage
 
Methods inherited from interface org.eclipse.emf.edit.provider.IItemPropertySource
getEditableValue, getPropertyDescriptor
 

Constructor Detail

ETypedElementItemProvider

public ETypedElementItemProvider(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 ENamedElementItemProvider

addETypePropertyDescriptor

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

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 ENamedElementItemProvider

notifyChanged

public void notifyChanged(Notification notification)
This handles notification by calling fireNotifyChanged.
Overrides:
notifyChanged in class ENamedElementItemProvider
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 ENamedElementItemProvider

getResourceLocator

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

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