public abstract class ProblemLabelDecorator
extends org.eclipse.jface.viewers.LabelDecorator
implements org.eclipse.jface.viewers.ILabelDecorator
computeProblemSeverity method.| Modifier and Type | Class and Description |
|---|---|
protected static class |
ProblemLabelDecorator.Severity
Indicates problem severity.
|
| Constructor and Description |
|---|
ProblemLabelDecorator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(org.eclipse.jface.viewers.ILabelProviderListener listener) |
protected abstract ProblemLabelDecorator.Severity |
computeProblemSeverity(java.lang.Object element,
org.eclipse.jface.viewers.IDecorationContext context)
Computes problem severity for the given element taking into account
the provided context.
|
org.eclipse.swt.graphics.Image |
decorateImage(org.eclipse.swt.graphics.Image image,
java.lang.Object element) |
org.eclipse.swt.graphics.Image |
decorateImage(org.eclipse.swt.graphics.Image image,
java.lang.Object element,
org.eclipse.jface.viewers.IDecorationContext context) |
java.lang.String |
decorateText(java.lang.String text,
java.lang.Object element) |
java.lang.String |
decorateText(java.lang.String text,
java.lang.Object element,
org.eclipse.jface.viewers.IDecorationContext context) |
void |
dispose() |
boolean |
isLabelProperty(java.lang.Object element,
java.lang.String property) |
boolean |
prepareDecoration(java.lang.Object element,
java.lang.String originalText,
org.eclipse.jface.viewers.IDecorationContext context) |
void |
removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener) |
public org.eclipse.swt.graphics.Image decorateImage(org.eclipse.swt.graphics.Image image,
java.lang.Object element,
org.eclipse.jface.viewers.IDecorationContext context)
decorateImage in class org.eclipse.jface.viewers.LabelDecoratorpublic org.eclipse.swt.graphics.Image decorateImage(org.eclipse.swt.graphics.Image image,
java.lang.Object element)
decorateImage in interface org.eclipse.jface.viewers.ILabelDecoratorpublic java.lang.String decorateText(java.lang.String text,
java.lang.Object element,
org.eclipse.jface.viewers.IDecorationContext context)
decorateText in class org.eclipse.jface.viewers.LabelDecoratorpublic java.lang.String decorateText(java.lang.String text,
java.lang.Object element)
decorateText in interface org.eclipse.jface.viewers.ILabelDecoratorpublic boolean prepareDecoration(java.lang.Object element,
java.lang.String originalText,
org.eclipse.jface.viewers.IDecorationContext context)
prepareDecoration in class org.eclipse.jface.viewers.LabelDecoratorpublic void dispose()
dispose in interface org.eclipse.jface.viewers.IBaseLabelProviderpublic boolean isLabelProperty(java.lang.Object element,
java.lang.String property)
isLabelProperty in interface org.eclipse.jface.viewers.IBaseLabelProviderpublic void addListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
addListener in interface org.eclipse.jface.viewers.IBaseLabelProviderpublic void removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
removeListener in interface org.eclipse.jface.viewers.IBaseLabelProviderprotected abstract ProblemLabelDecorator.Severity computeProblemSeverity(java.lang.Object element, org.eclipse.jface.viewers.IDecorationContext context)
element - never nullcontext - never nullnull if there is no problemCopyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0