public class CDOLabelDecorator extends Object implements ILabelDecorator
CDO objects
according to a pattern.Modifier and Type | Field and Description |
---|---|
static String[] |
DECORATION_PROPOSALS |
static String |
DECORATOR_ID |
static String |
DEFAULT_DECORATION |
static String |
NO_DECORATION |
Constructor and Description |
---|
CDOLabelDecorator() |
CDOLabelDecorator(String pattern) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ILabelProviderListener listener) |
static Image |
decorate(Image image,
Object element) |
Image |
decorateImage(Image image,
Object element) |
String |
decorateText(String text,
Object element) |
void |
dispose() |
protected String |
getObjectState(InternalCDOObject object) |
boolean |
isLabelProperty(Object element,
String property) |
String |
parsePattern(String unparsedPattern) |
void |
removeListener(ILabelProviderListener listener) |
public static final String[] DECORATION_PROPOSALS
public static final String DEFAULT_DECORATION
public static final String NO_DECORATION
public static final String DECORATOR_ID
public CDOLabelDecorator()
public CDOLabelDecorator(String pattern)
public void dispose()
dispose
in interface IBaseLabelProvider
public Image decorateImage(Image image, Object element)
decorateImage
in interface ILabelDecorator
public String decorateText(String text, Object element)
decorateText
in interface ILabelDecorator
public boolean isLabelProperty(Object element, String property)
isLabelProperty
in interface IBaseLabelProvider
public void addListener(ILabelProviderListener listener)
addListener
in interface IBaseLabelProvider
public void removeListener(ILabelProviderListener listener)
removeListener
in interface IBaseLabelProvider
protected String getObjectState(InternalCDOObject object)
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.