Class AttributeChangeItemProviderSpec
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.edit.provider.ItemProviderAdapter
org.eclipse.emf.compare.provider.DiffItemProvider
org.eclipse.emf.compare.provider.AttributeChangeItemProvider
org.eclipse.emf.compare.provider.spec.AttributeChangeItemProviderSpec
- All Implemented Interfaces:
Adapter
,Adapter.Internal
,ResourceLocator
,IItemDescriptionProvider
,IItemStyledLabelProvider
,ISemanticObjectLabelProvider
,CreateChildCommand.Helper
,IChangeNotifier
,IDisposable
,IEditingDomainItemProvider
,IItemColorProvider
,IItemFontProvider
,IItemLabelProvider
,IItemPropertySource
,IStructuredItemContentProvider
,ITreeItemContentProvider
public class AttributeChangeItemProviderSpec
extends AttributeChangeItemProvider
implements IItemStyledLabelProvider, IItemDescriptionProvider, ISemanticObjectLabelProvider
Specialized
AttributeChangeItemProvider
returning nice output for getText(Object)
and
getImage(Object)
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
ItemProviderAdapter.ChildrenStore, ItemProviderAdapter.ModifiableSingletonEList<E extends Object>, ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommand, ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
-
Field Summary
Fields inherited from class org.eclipse.emf.compare.provider.AttributeChangeItemProvider
copyright
Fields inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
adapterFactory, changeNotifier, childrenFeatures, childrenReferences, childrenStoreMap, itemPropertyDescriptors, targets, wrappers, wrappingNeeded
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
Fields inherited from interface org.eclipse.emf.edit.provider.IItemColorProvider
GRAYED_OUT_COLOR
Fields inherited from interface org.eclipse.emf.edit.provider.IItemFontProvider
BOLD_FONT, BOLD_ITALIC_FONT, ITALIC_FONT, NORMAL_FONT
-
Constructor Summary
ConstructorDescriptionAttributeChangeItemProviderSpec
(AdapterFactory adapterFactory) Constructs an AttributeChangeItemProviderSpec with the given factory. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getAttributeText
(AttributeChange attChange) Returns the name of the attribute linked to the givenAttributeChange
.getDescription
(Object object) Returns the description for the given object.getForeground
(Object object) This returns AttributeChange.gif.getSemanticObjectLabel
(Object object) Returns the label for the given object.getStyledText
(Object object) Returns the styled text label for the given object.This returns the label text for the adapted class.protected String
getValueText
(Object attValue, EAttribute attribute) Converts to text the givenAttribute
& value.protected String
getValueText
(AttributeChange attChange) Converts to text the givenAttributeChange
.Methods inherited from class org.eclipse.emf.compare.provider.AttributeChangeItemProvider
addAttributePropertyDescriptor, addValuePropertyDescriptor, collectNewChildDescriptors, getPropertyDescriptors, notifyChanged
Methods inherited from class org.eclipse.emf.compare.provider.DiffItemProvider
addConflictPropertyDescriptor, addEquivalencePropertyDescriptor, addImpliedByPropertyDescriptor, addImpliesPropertyDescriptor, addKindPropertyDescriptor, addPrimeRefiningPropertyDescriptor, addRefinedByPropertyDescriptor, addRefinesPropertyDescriptor, addRequiredByPropertyDescriptor, addRequiresPropertyDescriptor, addSourcePropertyDescriptor, addStatePropertyDescriptor, getResourceLocator
Methods inherited from class org.eclipse.emf.edit.provider.ItemProviderAdapter
addListener, adjustWrapperIndex, adjustWrapperIndices, adjustWrapperIndices, createAddCommand, createAddCommand, createChildParameter, createChildrenStore, createCommand, createCopyCommand, createCreateChildCommand, createCreateChildCommand, createCreateCopyCommand, createDragAndDropCommand, createDragAndDropCommand, createInitializeCopyCommand, createItemPropertyDescriptor, createItemPropertyDescriptor, createItemPropertyDescriptor, createMoveCommand, createMoveCommand, createRemoveCommand, createRemoveCommand, createReplaceCommand, createReplaceCommand, createReplaceCommand, createSetCommand, createSetCommand, createWrapper, crop, dispose, disposeWrapper, disposeWrappers, factorAddCommand, factorMoveCommand, factorRemoveCommand, fireNotifyChanged, getAdapterFactory, getBackground, getBackground, getBaseURL, getChildFeature, getChildReference, getChildren, getChildrenFeatures, getChildrenReferences, getChildrenStore, getColumnImage, getColumnText, getCreateChildDescription, getCreateChildImage, getCreateChildResult, getCreateChildText, getCreateChildToolTipText, getEditableValue, getElements, getFeatureText, getFeatureValue, getFont, getFont, getForeground, getImage, getNewChildDescriptors, getParent, getPropertyDescriptor, getPropertyValue, getReferenceValue, getResourceLocator, getRootAdapterFactory, getSetFeature, getSetFeatures, getString, getString, getString, getString, getString, getString, getString, getString, 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, wrapCommand
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.emf.edit.provider.IEditingDomainItemProvider
createCommand, getChildren, getNewChildDescriptors, getParent
Methods inherited from interface org.eclipse.emf.edit.provider.IItemColorProvider
getBackground
Methods inherited from interface org.eclipse.emf.edit.provider.IItemFontProvider
getFont
Methods inherited from interface org.eclipse.emf.edit.provider.IItemPropertySource
getEditableValue, getPropertyDescriptor
Methods inherited from interface org.eclipse.emf.edit.provider.IStructuredItemContentProvider
getElements
Methods inherited from interface org.eclipse.emf.edit.provider.ITreeItemContentProvider
getChildren, getParent, hasChildren
-
Constructor Details
-
AttributeChangeItemProviderSpec
Constructs an AttributeChangeItemProviderSpec with the given factory.- Parameters:
adapterFactory
- the factory given to the super constructor.
-
-
Method Details
-
getImage
This returns AttributeChange.gif.- Specified by:
getImage
in interfaceIItemLabelProvider
- Overrides:
getImage
in classAttributeChangeItemProvider
- See Also:
-
getText
This returns the label text for the adapted class.- Specified by:
getText
in interfaceIItemLabelProvider
- Overrides:
getText
in classAttributeChangeItemProvider
- See Also:
-
getAttributeText
Returns the name of the attribute linked to the givenAttributeChange
.- Parameters:
attChange
- the givenAttributeChange
.- Returns:
- the name of the attribute linked to the given
AttributeChange
.
-
getValueText
Converts to text the givenAttributeChange
.- Parameters:
attChange
- the givenAttributeChange
.- Returns:
- a nice text from the the given
AttributeChange
.
-
getValueText
Converts to text the givenAttribute
& value.- Parameters:
attValue
- the valueattribute
- the related attribute- Returns:
- a nice text from the the given
Attribute
& value.
-
getForeground
- Specified by:
getForeground
in interfaceIItemColorProvider
- Overrides:
getForeground
in classItemProviderAdapter
- See Also:
-
getStyledText
Returns the styled text label for the given object.- Specified by:
getStyledText
in interfaceIItemStyledLabelProvider
- Overrides:
getStyledText
in classItemProviderAdapter
- Parameters:
object
- the object to evaluate the styled string for.- Returns:
- the styled string.
- See Also:
-
getSemanticObjectLabel
Returns the label for the given object.- Specified by:
getSemanticObjectLabel
in interfaceISemanticObjectLabelProvider
- Parameters:
object
- The object to evaluate the label for- Returns:
- the label
- Since:
- 4.2
- See Also:
-
getDescription
Returns the description for the given object.- Specified by:
getDescription
in interfaceIItemDescriptionProvider
- Parameters:
object
- the object to evaluate the description for.- Returns:
- the description.
- See Also:
-