Package org.eclipse.emf.cdo.ui
Class CDOLabelProvider
java.lang.Object
org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
org.eclipse.emf.cdo.ui.CDOLabelProvider
- All Implemented Interfaces:
INotifyChangedListener
,DelegatingStyledCellLabelProvider.IStyledLabelProvider
,IBaseLabelProvider
,IColorProvider
,IFontProvider
,ILabelProvider
,ITableLabelProvider
public class CDOLabelProvider
extends AdapterFactoryLabelProvider
implements IColorProvider, IFontProvider, DelegatingStyledCellLabelProvider.IStyledLabelProvider
A
AdapterFactoryLabelProvider
specialization
that decorates objects
with a color/font code according to their current
state
.- Author:
- Eike Stepper
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
AdapterFactoryLabelProvider.ColorProvider, AdapterFactoryLabelProvider.ConvertingStyler, AdapterFactoryLabelProvider.FontAndColorProvider, AdapterFactoryLabelProvider.FontProvider, AdapterFactoryLabelProvider.StyledLabelProvider
-
Field Summary
Fields inherited from class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
adapterFactory, defaultBackground, defaultFont, defaultForeground, isFireLabelUpdateNotifications, labelProviderListeners
-
Constructor Summary
ConstructorDescriptionCDOLabelProvider
(AdapterFactory adapterFactory, CDOView view, TreeViewer viewer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
getBackground
(Object object) static Color
protected String
getExceptionMessage
(Exception exception) getForeground
(Object object) protected String
getView()
void
notifyChanged
(Notification notification) Methods inherited from class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
addListener, createStyler, fireLabelProviderChanged, getAdapterFactory, getBackground, getColorFromObject, getColumnImage, getColumnText, getDefaultBackground, getDefaultFont, getDefaultForeground, getDefaultImage, getFont, getFontFromObject, getForeground, getImageFromObject, getStyledStringFromObject, getStyledText, isFireLabelUpdateNotifications, isLabelProperty, removeListener, setAdapterFactory, setDefaultBackground, setDefaultFont, setDefaultForeground, setFireLabelUpdateNotifications, toJFaceStyledString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider
getStyledText
Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
addListener, isLabelProperty, removeListener
-
Constructor Details
-
CDOLabelProvider
- Since:
- 2.0
-
-
Method Details
-
getView
- Since:
- 2.0
-
getViewer
-
dispose
public void dispose()- Specified by:
dispose
in interfaceIBaseLabelProvider
- Overrides:
dispose
in classAdapterFactoryLabelProvider
-
notifyChanged
- Specified by:
notifyChanged
in interfaceINotifyChangedListener
- Overrides:
notifyChanged
in classAdapterFactoryLabelProvider
-
getImage
- Specified by:
getImage
in interfaceDelegatingStyledCellLabelProvider.IStyledLabelProvider
- Specified by:
getImage
in interfaceILabelProvider
- Overrides:
getImage
in classAdapterFactoryLabelProvider
-
getText
- Specified by:
getText
in interfaceILabelProvider
- Overrides:
getText
in classAdapterFactoryLabelProvider
-
getText
- Since:
- 4.13
-
getExceptionMessage
- Since:
- 4.13
-
getBackground
- Specified by:
getBackground
in interfaceIColorProvider
- Overrides:
getBackground
in classAdapterFactoryLabelProvider
-
getForeground
- Specified by:
getForeground
in interfaceIColorProvider
- Overrides:
getForeground
in classAdapterFactoryLabelProvider
-
getFont
- Specified by:
getFont
in interfaceIFontProvider
- Overrides:
getFont
in classAdapterFactoryLabelProvider
-
getColor
- Since:
- 4.3
-