|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.ui.ProblemsLabelDecorator
public class ProblemsLabelDecorator
LabelDecorator that decorates an element's image with error and warning overlays that
represent the severity of markers attached to the element's underlying resource. To see
a problem decoration for a marker, the marker needs to be a subtype of 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.
Nested Class Summary | |
---|---|
static class |
ProblemsLabelDecorator.ProblemsLabelChangedEvent
This is a special LabelProviderChangedEvent carrying additional
information whether the event origins from a maker change. |
Constructor Summary | |
---|---|
ProblemsLabelDecorator()
Creates a new ProblemsLabelDecorator . |
|
ProblemsLabelDecorator(org.eclipse.wst.jsdt.internal.ui.viewsupport.ImageDescriptorRegistry registry)
Note: This constructor is for internal use only. |
Method Summary | |
---|---|
void |
addListener(ILabelProviderListener listener)
|
protected int |
computeAdornmentFlags(Object obj)
Note: This method is for internal use only. |
void |
decorate(Object element,
IDecoration decoration)
|
Image |
decorateImage(Image image,
Object obj)
|
String |
decorateText(String text,
Object element)
|
void |
dispose()
|
boolean |
isLabelProperty(Object element,
String property)
|
void |
removeListener(ILabelProviderListener listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 registryMethod Detail |
---|
public String decorateText(String text, Object element)
public Image decorateImage(Image image, Object obj)
protected int computeAdornmentFlags(Object obj)
obj
- the element to compute the flags for
public void dispose()
public boolean isLabelProperty(Object element, String property)
public void addListener(ILabelProviderListener listener)
public void removeListener(ILabelProviderListener listener)
public void decorate(Object element, IDecoration decoration)
|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |