|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.edit.provider.ItemProviderDecorator
org.eclipse.emf.mapping.provider.MappedObjectItemProvider
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 |
protected Mapping mapping
protected EObject mappedObject
protected MappedObjectState mappedObjectState
Constructor Detail |
public MappedObjectItemProvider(AdapterFactory adapterFactory, EObject mappedObject, Mapping mapping)
Method Detail |
public Object getParent(Object object)
getParent
in interface IEditingDomainItemProvider
getParent
in class ItemProviderDecorator
public Collection getElements(Object object)
IStructuredItemContentProvider
getElements
in interface IStructuredItemContentProvider
getElements
in class ItemProviderDecorator
public Collection getChildren(Object object)
IEditingDomainItemProvider
EditingDomain.getChildren
,
i.e., it imposes a hierarchical relation on a domain's model objects.
getChildren
in interface IEditingDomainItemProvider
getChildren
in class ItemProviderDecorator
public boolean hasChildren(Object object)
ITreeItemContentProvider
hasChildren
in interface ITreeItemContentProvider
hasChildren
in class ItemProviderDecorator
public Object getImage(Object object)
IItemLabelProvider
getImage
in interface IItemLabelProvider
getImage
in class ItemProviderDecorator
public String getText(Object object)
IItemLabelProvider
getText
in interface IItemLabelProvider
getText
in class ItemProviderDecorator
public List getPropertyDescriptors(Object object)
IItemPropertySource
getPropertyDescriptors
in interface IItemPropertySource
getPropertyDescriptors
in class ItemProviderDecorator
public IItemPropertyDescriptor getPropertyDescriptor(Object object, Object propertyId)
IItemPropertySource
getPropertyDescriptor
in interface IItemPropertySource
getPropertyDescriptor
in class ItemProviderDecorator
public void notifyChanged(Notification msg)
fireNotifyChanged
.
notifyChanged
in interface INotifyChangedListener
notifyChanged
in class ItemProviderDecorator
public Command createCommand(Object object, EditingDomain editingDomain, Class commandClass, CommandParameter commandParameter)
IEditingDomainItemProvider
EditingDomain.createCommand
,
i.e., it creates commands for a domain's model objects.
createCommand
in interface IEditingDomainItemProvider
createCommand
in class ItemProviderDecorator
public EObject getMappedObject()
public Mapping getMapping()
public void dispose()
IDisposable
dispose
in interface IDisposable
dispose
in class ItemProviderDecorator
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |