|
Eclipse JDT Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.ui.OverrideIndicatorLabelDecorator
public class OverrideIndicatorLabelDecorator
LabelDecorator that decorates an method's image with override or implements overlays. The viewer using this decorator is responsible for updating the images on element changes.
This class may be instantiated; it is not intended to be subclassed.
| Constructor Summary | |
|---|---|
OverrideIndicatorLabelDecorator()
Creates a decorator. |
|
OverrideIndicatorLabelDecorator(org.eclipse.jdt.internal.ui.viewsupport.ImageDescriptorRegistry registry)
Note: This constructor is for internal use only. |
|
| Method Summary | |
|---|---|
void |
addListener(ILabelProviderListener listener)
|
int |
computeAdornmentFlags(Object element)
Note: This method is for internal use only. |
void |
decorate(Object element,
IDecoration decoration)
|
Image |
decorateImage(Image image,
Object element)
|
String |
decorateText(String text,
Object element)
|
void |
dispose()
|
protected int |
findInHierarchy(IType type,
ITypeHierarchy hierarchy,
String name,
String[] paramTypes)
Deprecated. Not used anymore. This method is not accurate for methods in generic types. |
protected int |
getOverrideIndicators(IMethod method)
Note: This method is for internal use only. |
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 OverrideIndicatorLabelDecorator()
public OverrideIndicatorLabelDecorator(org.eclipse.jdt.internal.ui.viewsupport.ImageDescriptorRegistry registry)
registry - The registry to use.| Method Detail |
|---|
public String decorateText(String text,
Object element)
decorateText in interface ILabelDecorator
public Image decorateImage(Image image,
Object element)
decorateImage in interface ILabelDecoratorpublic int computeAdornmentFlags(Object element)
element - The element to decorate
protected int getOverrideIndicators(IMethod method)
throws JavaModelException
method - The element to decorate
JavaModelException
protected int findInHierarchy(IType type,
ITypeHierarchy hierarchy,
String name,
String[] paramTypes)
throws JavaModelException
type - The declaring type of the method to decorate.hierarchy - The type hierarchy of the declaring type.name - The name of the method to find.paramTypes - The parameter types of the method to find.
JavaModelExceptionpublic void addListener(ILabelProviderListener listener)
addListener in interface IBaseLabelProviderpublic void dispose()
dispose in interface IBaseLabelProvider
public boolean isLabelProperty(Object element,
String property)
isLabelProperty in interface IBaseLabelProviderpublic void removeListener(ILabelProviderListener listener)
removeListener in interface IBaseLabelProvider
public void decorate(Object element,
IDecoration decoration)
decorate in interface ILightweightLabelDecorator
|
Eclipse JDT Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||