Package org.eclipse.emf.compare.provider
Class SafeAdapterFactoryItemDelegator
- java.lang.Object
-
- org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator
-
- org.eclipse.emf.compare.provider.SafeAdapterFactoryItemDelegator
-
- All Implemented Interfaces:
IEditingDomainItemProvider
,IItemColorProvider
,IItemFontProvider
,IItemLabelProvider
,IItemPropertySource
,IStructuredItemContentProvider
,ITableItemColorProvider
,ITableItemFontProvider
,ITableItemLabelProvider
,ITreeItemContentProvider
public class SafeAdapterFactoryItemDelegator extends AdapterFactoryItemDelegator
A safeAdapterFactoryItemDelegator
.This adapter factory item delegator is safe with respect to
missing image resources
that may occur in the item providers in the adapter factory this delegator delegates to.
-
-
Field Summary
-
Fields inherited from class org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator
adapterFactory
-
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
Constructors Constructor Description SafeAdapterFactoryItemDelegator(AdapterFactory adapterFactory)
Creates a new safe adapter factory item delegator with the givenadapterFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getImage(Object object)
However, this method catchesMissingResourceException
potentially thrown in item providers of the adapter factories and returnsnull
in case aMissingResourceException
was caught.-
Methods inherited from class org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator
createCommand, getAdapterFactory, getBackground, getBackground, getChildren, getColumnImage, getColumnText, getEditableValue, getElements, getFont, getFont, getForeground, getForeground, getNewChildDescriptors, getParent, getPropertyDescriptor, getPropertyDescriptors, getText, hasChildren
-
-
-
-
Constructor Detail
-
SafeAdapterFactoryItemDelegator
public SafeAdapterFactoryItemDelegator(AdapterFactory adapterFactory)
Creates a new safe adapter factory item delegator with the givenadapterFactory
.- Parameters:
adapterFactory
- The adapter factory to delegate to.
-
-
Method Detail
-
getImage
public Object getImage(Object object)
However, this method catchesMissingResourceException
potentially thrown in item providers of the adapter factories and returnsnull
in case aMissingResourceException
was caught.- Specified by:
getImage
in interfaceIItemLabelProvider
- Overrides:
getImage
in classAdapterFactoryItemDelegator
-
-