public class ProblemsLabelDecorator
extends java.lang.Object
IMarker.PROBLEM
.
Important: Although this decorator implements ILightweightLabelDecorator, do not contribute this
class as a decorator to the org.eclipse.ui.decorators
extension. Only use this class in your
own views and label providers.
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
Modifier and Type | Class and Description |
---|---|
static class |
ProblemsLabelDecorator.ProblemsLabelChangedEvent
This is a special
LabelProviderChangedEvent carrying additional
information whether the event origins from a maker change. |
Constructor and Description |
---|
ProblemsLabelDecorator()
Creates a new
ProblemsLabelDecorator . |
ProblemsLabelDecorator(org.eclipse.wst.jsdt.internal.ui.viewsupport.ImageDescriptorRegistry registry)
Note: This constructor is for internal use only.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(ILabelProviderListener listener) |
protected int |
computeAdornmentFlags(java.lang.Object obj)
Note: This method is for internal use only.
|
void |
decorate(java.lang.Object element,
IDecoration decoration) |
Image |
decorateImage(Image image,
java.lang.Object obj) |
java.lang.String |
decorateText(java.lang.String text,
java.lang.Object element) |
void |
dispose() |
boolean |
isLabelProperty(java.lang.Object element,
java.lang.String property) |
void |
removeListener(ILabelProviderListener listener) |
public ProblemsLabelDecorator()
ProblemsLabelDecorator
.public ProblemsLabelDecorator(org.eclipse.wst.jsdt.internal.ui.viewsupport.ImageDescriptorRegistry registry)
registry
- The registry to use or null
to use the JavaScript plugin's
image registrypublic java.lang.String decorateText(java.lang.String text, java.lang.Object element)
public Image decorateImage(Image image, java.lang.Object obj)
protected int computeAdornmentFlags(java.lang.Object obj)
obj
- the element to compute the flags forpublic void dispose()
public boolean isLabelProperty(java.lang.Object element, java.lang.String property)
public void addListener(ILabelProviderListener listener)
public void removeListener(ILabelProviderListener listener)
public void decorate(java.lang.Object element, IDecoration decoration)
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.