public class MatchItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, IItemColorProvider, IItemFontProvider
Match object.
ItemProviderAdapter.ChildrenStore, ItemProviderAdapter.ModifiableSingletonEList<E>, ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommand, ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegateAdapter.Internal| Modifier and Type | Field and Description |
|---|---|
static String |
copyright |
adapterFactory, changeNotifier, childrenFeatures, childrenReferences, childrenStoreMap, itemPropertyDescriptors, targets, wrappers, wrappingNeededtargetGRAYED_OUT_COLORBOLD_FONT, BOLD_ITALIC_FONT, ITALIC_FONT, NORMAL_FONT| Constructor and Description |
|---|
MatchItemProvider(AdapterFactory adapterFactory)
This constructs an instance from a factory and a notifier
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLeftPropertyDescriptor(Object object)
This adds a property descriptor for the Left feature
|
protected void |
addOriginPropertyDescriptor(Object object)
This adds a property descriptor for the Origin feature
|
protected void |
addRightPropertyDescriptor(Object object)
This adds a property descriptor for the Right feature
|
protected void |
collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object)
This adds
CommandParameters describing the children
that can be created under this object |
protected EStructuralFeature |
getChildFeature(Object object,
Object child) |
Collection<? extends EStructuralFeature> |
getChildrenFeatures(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) |
Object |
getImage(Object object)
This returns Match.gif
|
List<IItemPropertyDescriptor> |
getPropertyDescriptors(Object object)
This returns the property descriptors for the adapted class
|
ResourceLocator |
getResourceLocator()
Return the resource locator for this item provider's resources
|
String |
getText(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) |
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, shouldComposeCreationImage, shouldTranslate, unsetTarget, unwrap, unwrapCommandValues, updateChildren, wrap, wrapCommandgetTargetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCommand, getChildren, getNewChildDescriptors, getParentgetChildren, getParent, hasChildrengetElementsgetEditableValue, getPropertyDescriptorgetBackground, getForegroundgetFontpublic static final String copyright
public MatchItemProvider(AdapterFactory adapterFactory)
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
getPropertyDescriptors in interface IItemPropertySourcegetPropertyDescriptors in class ItemProviderAdapterprotected void addLeftPropertyDescriptor(Object object)
protected void addRightPropertyDescriptor(Object object)
protected void addOriginPropertyDescriptor(Object object)
public Collection<? extends EStructuralFeature> getChildrenFeatures(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 ItemProviderAdapterprotected EStructuralFeature getChildFeature(Object object, Object child)
getChildFeature in class ItemProviderAdapterpublic Object getImage(Object object)
getImage in interface IItemLabelProvidergetImage in class ItemProviderAdapterpublic String getText(Object object)
getText in interface IItemLabelProvidergetText in class ItemProviderAdapterpublic 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 AdapternotifyChanged in class AdapterImplprotected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object)
CommandParameters describing the children
that can be created under this object.
collectNewChildDescriptors in class ItemProviderAdapterpublic ResourceLocator getResourceLocator()
getResourceLocator in class ItemProviderAdapter
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.