|
Eclipse JDT Release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jdt.ui.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.
| 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.jdt.internal.ui.viewsupport.ImageDescriptorRegistry registry)
Note: This constructor is for internal use only. |
|
| Method Summary | |
void |
addListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
|
protected int |
computeAdornmentFlags(Object obj)
Note: This method is for internal use only. |
void |
decorate(Object element,
org.eclipse.jface.viewers.IDecoration decoration)
|
org.eclipse.swt.graphics.Image |
decorateImage(org.eclipse.swt.graphics.Image image,
Object obj)
|
String |
decorateText(String text,
Object element)
|
void |
dispose()
|
protected boolean |
isInside(int pos,
ISourceReference sourceElement)
Tests if a position is inside the source range of an element. |
boolean |
isLabelProperty(Object element,
String property)
|
void |
removeListener(org.eclipse.jface.viewers.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.jdt.internal.ui.viewsupport.ImageDescriptorRegistry registry)
| Method Detail |
public String decorateText(String text,
Object element)
decorateText in interface org.eclipse.jface.viewers.ILabelDecorator
public org.eclipse.swt.graphics.Image decorateImage(org.eclipse.swt.graphics.Image image,
Object obj)
decorateImage in interface org.eclipse.jface.viewers.ILabelDecoratorprotected int computeAdornmentFlags(Object obj)
protected boolean isInside(int pos,
ISourceReference sourceElement)
throws org.eclipse.core.runtime.CoreException
pos - Position to be tested.sourceElement - Source element (must be a IJavaElement)
true if position is located inside the source element.
org.eclipse.core.runtime.CoreException - Exception thrown if element range could not be accessed.public void dispose()
dispose in interface org.eclipse.jface.viewers.IBaseLabelProvider
public boolean isLabelProperty(Object element,
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.IBaseLabelProvider
public void decorate(Object element,
org.eclipse.jface.viewers.IDecoration decoration)
decorate in interface org.eclipse.jface.viewers.ILightweightLabelDecorator
|
Eclipse JDT Release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||