
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) |
Image |
decorateImage(Image image,
Object element) |
String |
decorateText(String text,
Object element) |
void |
dispose() |
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 IBaseLabelProviderpublic Image decorateImage(Image image, Object element)
decorateImage in interface ILabelDecoratorpublic String decorateText(String text, Object element)
decorateText in interface ILabelDecoratorpublic boolean isLabelProperty(Object element, String property)
isLabelProperty in interface IBaseLabelProviderpublic void addListener(ILabelProviderListener listener)
addListener in interface IBaseLabelProviderpublic void removeListener(ILabelProviderListener listener)
removeListener in interface IBaseLabelProviderCopyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.