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.mapping.provider
Class MappedObjectItemProvider

java.lang.Object
  extended byorg.eclipse.emf.edit.provider.ItemProviderDecorator
      extended byorg.eclipse.emf.mapping.provider.MappedObjectItemProvider

All Implemented Interfaces:
IChangeNotifier, IDisposable, IEditingDomainItemProvider, IItemLabelProvider, IItemPropertySource, IItemProviderDecorator, INotifyChangedListener, IStructuredItemContentProvider, ITreeItemContentProvider


public class MappedObjectItemProvider
extends ItemProviderDecorator
implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource

This is the item provider adpater for a Mapping object.


Field Summary
protected  EObject mappedObject
           
protected  MappedObjectState mappedObjectState
           
protected  Mapping mapping
           
 
Fields inherited from class org.eclipse.emf.edit.provider.ItemProviderDecorator
adapterFactory, changeNotifier, decoratedItemProvider
 
Constructor Summary
MappedObjectItemProvider(AdapterFactory adapterFactory, EObject mappedObject, Mapping mapping)
          This constructs an instance from a factory and a notifier.
 
Method Summary
 Command createCommand(Object object, EditingDomain editingDomain, Class commandClass, CommandParameter commandParameter)
          This does the same thing as EditingDomain.createCommand, i.e., it creates commands for a domain's model objects.
 void dispose()
          This is called to dispose the object.
 Collection getChildren(Object object)
          This does the same thing as EditingDomain.getChildren, i.e., it imposes a hierarchical relation on a domain's model objects.
 Collection getElements(Object object)
          This does the same thing as IStructuredContentProvider.getElements.
 Object getImage(Object object)
          This does the same thing as ILabelProvider.getImage, it fetches the label image specific to this object instance.
 EObject getMappedObject()
           
 Mapping getMapping()
           
 Object getParent(Object object)
          This returns the nestedIn of the Mapping.
 IItemPropertyDescriptor getPropertyDescriptor(Object object, Object propertyId)
          This returns the property descriptor with the given ID.
 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.
 boolean hasChildren(Object object)
          This does the same thing as ITreeContentProvider.hasChildren.
 void notifyChanged(Notification msg)
          This handles notification by delegating to fireNotifyChanged.
 
Methods inherited from class org.eclipse.emf.edit.provider.ItemProviderDecorator
addListener, fireNotifyChanged, getAdapterFactory, getColumnImage, getColumnText, getDecoratedItemProvider, getEditableValue, getNewChildDescriptors, getUpdateableText, isAdapterForType, removeListener, setDecoratedItemProvider, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.edit.provider.IEditingDomainItemProvider
getNewChildDescriptors
 
Methods inherited from interface org.eclipse.emf.edit.provider.IItemPropertySource
getEditableValue
 

 

Field Detail

 

 

mapping

protected Mapping mapping


 

 

mappedObject

protected EObject mappedObject


 

 

mappedObjectState

protected MappedObjectState mappedObjectState

Constructor Detail

 

 

MappedObjectItemProvider

public MappedObjectItemProvider(AdapterFactory adapterFactory,
                                EObject mappedObject,
                                Mapping mapping)

This constructs an instance from a factory and a notifier.

Method Detail

 

 

getParent

public Object getParent(Object object)

This returns the nestedIn of the Mapping.

Specified by:
getParent in interface IEditingDomainItemProvider
Overrides:
getParent in class ItemProviderDecorator


 

 

getElements

public Collection getElements(Object object)

Description copied from interface: IStructuredItemContentProvider
This does the same thing as IStructuredContentProvider.getElements.

Specified by:
getElements in interface IStructuredItemContentProvider
Overrides:
getElements in class ItemProviderDecorator


 

 

getChildren

public Collection getChildren(Object object)

Description copied from interface: IEditingDomainItemProvider
This does the same thing as EditingDomain.getChildren, i.e., it imposes a hierarchical relation on a domain's model objects.

Specified by:
getChildren in interface IEditingDomainItemProvider
Overrides:
getChildren in class ItemProviderDecorator


 

 

hasChildren

public boolean hasChildren(Object object)

Description copied from interface: ITreeItemContentProvider
This does the same thing as ITreeContentProvider.hasChildren.

Specified by:
hasChildren in interface ITreeItemContentProvider
Overrides:
hasChildren in class ItemProviderDecorator


 

 

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 ItemProviderDecorator


 

 

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 ItemProviderDecorator


 

 

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 ItemProviderDecorator


 

 

getPropertyDescriptor

public IItemPropertyDescriptor getPropertyDescriptor(Object object,
                                                     Object propertyId)

Description copied from interface: IItemPropertySource
This returns the property descriptor with the given ID.

Specified by:
getPropertyDescriptor in interface IItemPropertySource
Overrides:
getPropertyDescriptor in class ItemProviderDecorator


 

 

notifyChanged

public void notifyChanged(Notification msg)

This handles notification by delegating to fireNotifyChanged.

Specified by:
notifyChanged in interface INotifyChangedListener
Overrides:
notifyChanged in class ItemProviderDecorator


 

 

createCommand

public Command createCommand(Object object,
                             EditingDomain editingDomain,
                             Class commandClass,
                             CommandParameter commandParameter)

Description copied from interface: IEditingDomainItemProvider
This does the same thing as EditingDomain.createCommand, i.e., it creates commands for a domain's model objects.

Specified by:
createCommand in interface IEditingDomainItemProvider
Overrides:
createCommand in class ItemProviderDecorator


 

 

getMappedObject

public EObject getMappedObject()


 

 

getMapping

public Mapping getMapping()


 

 

dispose

public void dispose()

Description copied from interface: IDisposable
This is called to dispose the object.

Specified by:
dispose in interface IDisposable
Overrides:
dispose in class ItemProviderDecorator


 

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