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.LabelDecorator
public org.eclipse.swt.graphics.Image decorateImage(org.eclipse.swt.graphics.Image image, java.lang.Object element)
decorateImage
in interface org.eclipse.jface.viewers.ILabelDecorator
public 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.LabelDecorator
public java.lang.String decorateText(java.lang.String text, java.lang.Object element)
decorateText
in interface org.eclipse.jface.viewers.ILabelDecorator
public boolean prepareDecoration(java.lang.Object element, java.lang.String originalText, org.eclipse.jface.viewers.IDecorationContext context)
prepareDecoration
in class org.eclipse.jface.viewers.LabelDecorator
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IBaseLabelProvider
public boolean isLabelProperty(java.lang.Object element, java.lang.String property)
isLabelProperty
in interface org.eclipse.jface.viewers.IBaseLabelProvider
public void addListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
addListener
in interface org.eclipse.jface.viewers.IBaseLabelProvider
public void removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
removeListener
in interface org.eclipse.jface.viewers.IBaseLabelProvider
protected abstract ProblemLabelDecorator.Severity computeProblemSeverity(java.lang.Object element, org.eclipse.jface.viewers.IDecorationContext context)
element
- never null
context
- never null
null
if there is no problemCopyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0