public class OverrideIndicatorLabelDecorator extends Object implements ILabelDecorator, ILightweightLabelDecorator
This class may be instantiated; it is not intended to be subclassed.
| Constructor and Description |
|---|
OverrideIndicatorLabelDecorator()
Creates a decorator.
|
OverrideIndicatorLabelDecorator(org.eclipse.jdt.internal.ui.viewsupport.ImageDescriptorRegistry registry)
Note: This constructor is for internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public OverrideIndicatorLabelDecorator()
public OverrideIndicatorLabelDecorator(org.eclipse.jdt.internal.ui.viewsupport.ImageDescriptorRegistry registry)
registry - The registry to use.public String decorateText(String text, Object element)
decorateText in interface ILabelDecoratorpublic Image decorateImage(Image image, Object element)
decorateImage in interface ILabelDecoratorpublic int computeAdornmentFlags(Object element)
element - The element to decorateprotected int getOverrideIndicators(IMethod method) throws JavaModelException
method - The element to decorateJavaModelExceptionprotected 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 IBaseLabelProviderpublic boolean isLabelProperty(Object element, String property)
isLabelProperty in interface IBaseLabelProviderpublic void removeListener(ILabelProviderListener listener)
removeListener in interface IBaseLabelProviderpublic void decorate(Object element, IDecoration decoration)
decorate in interface ILightweightLabelDecoratorCopyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.