public class XEnumItemProvider extends XDataTypeItemProvider implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
XEnum
object.
XModelElementItemProvider.UnderlayedImage
ItemProviderAdapter.ChildrenStore, ItemProviderAdapter.ModifiableSingletonEList<E>, ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommand, ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate
Adapter.Internal
adapterFactory, changeNotifier, childrenFeatures, childrenReferences, childrenStoreMap, itemPropertyDescriptors, targets, wrappers, wrappingNeeded
target
Constructor and Description |
---|
XEnumItemProvider(AdapterFactory adapterFactory)
This constructs an instance from a factory and a notifier
|
Modifier and Type | Method and Description |
---|---|
protected void |
collectNewChildDescriptors(java.util.Collection<java.lang.Object> newChildDescriptors,
java.lang.Object object)
This adds
CommandParameter s describing the children
that can be created under this object |
protected EStructuralFeature |
getChildFeature(java.lang.Object object,
java.lang.Object child) |
java.util.Collection<? extends EStructuralFeature> |
getChildrenFeatures(java.lang.Object object)
This specifies how to implement
ItemProviderAdapter.getChildren(java.lang.Object) and is used to deduce an appropriate feature for an
AddCommand , RemoveCommand or
MoveCommand in ItemProviderAdapter.createCommand(java.lang.Object, org.eclipse.emf.edit.domain.EditingDomain, java.lang.Class<? extends org.eclipse.emf.common.command.Command>, org.eclipse.emf.edit.command.CommandParameter) |
java.lang.Object |
getImage(java.lang.Object object)
This implements
IItemLabelProvider.getImage by returning null. |
java.util.List<IItemPropertyDescriptor> |
getPropertyDescriptors(java.lang.Object object)
This returns the property descriptors for the adapted class
|
java.lang.String |
getText(java.lang.Object object)
This returns the label text for the adapted class
|
void |
notifyChanged(Notification notification)
This handles model notifications by calling
ItemProviderAdapter.updateChildren(org.eclipse.emf.common.notify.Notification) to update any cached
children and by creating a viewer notification, which it passes to ItemProviderAdapter.fireNotifyChanged(org.eclipse.emf.common.notify.Notification) |
protected boolean |
shouldComposeCreationImage() |
addSerializablePropertyDescriptor
addNamePropertyDescriptor
getResourceLocator
addListener, adjustWrapperIndex, adjustWrapperIndices, adjustWrapperIndices, createAddCommand, createAddCommand, createChildParameter, createChildrenStore, createCommand, createCopyCommand, createCreateChildCommand, createCreateChildCommand, createCreateCopyCommand, createDragAndDropCommand, createDragAndDropCommand, createInitializeCopyCommand, createItemPropertyDescriptor, createItemPropertyDescriptor, createMoveCommand, createMoveCommand, createRemoveCommand, createRemoveCommand, createReplaceCommand, createReplaceCommand, createReplaceCommand, createSetCommand, createSetCommand, createWrapper, crop, dispose, disposeWrapper, disposeWrappers, factorAddCommand, factorMoveCommand, factorRemoveCommand, fireNotifyChanged, getAdapterFactory, getBackground, getBackground, getBaseURL, getChildReference, getChildren, getChildrenReferences, getChildrenStore, getColumnImage, getColumnText, getCreateChildDescription, getCreateChildImage, getCreateChildResult, getCreateChildText, getCreateChildToolTipText, getEditableValue, getElements, getFeatureText, getFeatureValue, getFont, getFont, getForeground, getForeground, getImage, getNewChildDescriptors, getParent, getPropertyDescriptor, getPropertyValue, getReferenceValue, getResourceLocator, getRootAdapterFactory, getSetFeature, getSetFeatures, getString, getString, getString, getString, getString, getString, getString, getString, getStyledText, getTypeText, getTypeText, getUpdateableText, getValue, getWrappedValues, hasChildren, hasChildren, isAdapterForType, isEquivalentValue, isPropertySet, isResolveProxies, isValidValue, isWrappingNeeded, overlayImage, removeListener, resetPropertyValue, setPropertyValue, setTarget, shouldTranslate, unsetTarget, unwrap, unwrapCommandValues, updateChildren, wrap, wrapCommand
getTarget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCommand, getChildren, getNewChildDescriptors, getParent
getChildren, getParent, hasChildren
getElements
getEditableValue, getPropertyDescriptor
public XEnumItemProvider(AdapterFactory adapterFactory)
public java.util.List<IItemPropertyDescriptor> getPropertyDescriptors(java.lang.Object object)
getPropertyDescriptors
in interface IItemPropertySource
getPropertyDescriptors
in class XDataTypeItemProvider
public java.util.Collection<? extends EStructuralFeature> getChildrenFeatures(java.lang.Object object)
ItemProviderAdapter.getChildren(java.lang.Object)
and is used to deduce an appropriate feature for an
AddCommand
, RemoveCommand
or
MoveCommand
in ItemProviderAdapter.createCommand(java.lang.Object, org.eclipse.emf.edit.domain.EditingDomain, java.lang.Class<? extends org.eclipse.emf.common.command.Command>, org.eclipse.emf.edit.command.CommandParameter)
.
getChildrenFeatures
in class XDataTypeItemProvider
protected EStructuralFeature getChildFeature(java.lang.Object object, java.lang.Object child)
getChildFeature
in class XDataTypeItemProvider
protected boolean shouldComposeCreationImage()
shouldComposeCreationImage
in class XDataTypeItemProvider
public java.lang.Object getImage(java.lang.Object object)
ItemProviderAdapter
IItemLabelProvider.getImage
by returning null.
Most things really should have an icon, but not having one is technically correct too.getImage
in interface IItemLabelProvider
getImage
in class XDataTypeItemProvider
public java.lang.String getText(java.lang.Object object)
getText
in interface IItemLabelProvider
getText
in class XDataTypeItemProvider
public void notifyChanged(Notification notification)
ItemProviderAdapter.updateChildren(org.eclipse.emf.common.notify.Notification)
to update any cached
children and by creating a viewer notification, which it passes to ItemProviderAdapter.fireNotifyChanged(org.eclipse.emf.common.notify.Notification)
.
notifyChanged
in interface Adapter
notifyChanged
in class XDataTypeItemProvider
notification
- a description of the change.protected void collectNewChildDescriptors(java.util.Collection<java.lang.Object> newChildDescriptors, java.lang.Object object)
CommandParameter
s describing the children
that can be created under this object.
collectNewChildDescriptors
in class XDataTypeItemProvider