|
|||||||||||
| 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 IEditingDomainItemProvidergetParent in class ItemProviderDecoratorpublic Collection getElements(Object object)
IStructuredItemContentProvider
getElements in interface IStructuredItemContentProvidergetElements in class ItemProviderDecoratorpublic Collection getChildren(Object object)
IEditingDomainItemProviderEditingDomain.getChildren,
i.e., it imposes a hierarchical relation on a domain's model objects.
getChildren in interface IEditingDomainItemProvidergetChildren in class ItemProviderDecoratorpublic boolean hasChildren(Object object)
ITreeItemContentProvider
hasChildren in interface ITreeItemContentProviderhasChildren in class ItemProviderDecoratorpublic Object getImage(Object object)
IItemLabelProvider
getImage in interface IItemLabelProvidergetImage in class ItemProviderDecoratorpublic String getText(Object object)
IItemLabelProvider
getText in interface IItemLabelProvidergetText in class ItemProviderDecoratorpublic List getPropertyDescriptors(Object object)
IItemPropertySource
getPropertyDescriptors in interface IItemPropertySourcegetPropertyDescriptors in class ItemProviderDecorator
public IItemPropertyDescriptor getPropertyDescriptor(Object object,
Object propertyId)
IItemPropertySource
getPropertyDescriptor in interface IItemPropertySourcegetPropertyDescriptor in class ItemProviderDecoratorpublic void notifyChanged(Notification msg)
fireNotifyChanged.
notifyChanged in interface INotifyChangedListenernotifyChanged in class ItemProviderDecorator
public Command createCommand(Object object,
EditingDomain editingDomain,
Class commandClass,
CommandParameter commandParameter)
IEditingDomainItemProviderEditingDomain.createCommand,
i.e., it creates commands for a domain's model objects.
createCommand in interface IEditingDomainItemProvidercreateCommand in class ItemProviderDecoratorpublic EObject getMappedObject()
public Mapping getMapping()
public void dispose()
IDisposable
dispose in interface IDisposabledispose 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 | ||||||||||