public class SafeAdapterFactoryItemDelegator extends AdapterFactoryItemDelegator
AdapterFactoryItemDelegator
.
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.
adapterFactory
BOLD_FONT, BOLD_ITALIC_FONT, ITALIC_FONT, NORMAL_FONT
GRAYED_OUT_COLOR
Constructor and Description |
---|
SafeAdapterFactoryItemDelegator(AdapterFactory adapterFactory)
Creates a new safe adapter factory item delegator with the given
adapterFactory . |
Modifier and Type | Method and Description |
---|---|
Object |
getImage(Object object)
However, this method catches
MissingResourceException potentially thrown in item
providers of the adapter factories and returns null in case a
MissingResourceException was caught. |
createCommand, getAdapterFactory, getBackground, getBackground, getChildren, getColumnImage, getColumnText, getEditableValue, getElements, getFont, getFont, getForeground, getForeground, getNewChildDescriptors, getParent, getPropertyDescriptor, getPropertyDescriptors, getText, hasChildren
public SafeAdapterFactoryItemDelegator(AdapterFactory adapterFactory)
adapterFactory
.adapterFactory
- The adapter factory to delegate to.public Object getImage(Object object)
MissingResourceException
potentially thrown in item
providers of the adapter factories and returns null
in case a
MissingResourceException
was caught.getImage
in interface IItemLabelProvider
getImage
in class AdapterFactoryItemDelegator
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.