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 ILabelDecorator
public Image decorateImage(Image image, Object element)
decorateImage
in interface ILabelDecorator
public int computeAdornmentFlags(Object element)
element
- The element to decorateprotected int getOverrideIndicators(IMethod method) throws JavaModelException
method
- The element to decorateJavaModelException
- if accessing a Java Model element failsprotected 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.JavaModelException
- if accessing a Java Model element failspublic void addListener(ILabelProviderListener listener)
addListener
in interface IBaseLabelProvider
public void dispose()
dispose
in interface IBaseLabelProvider
public boolean isLabelProperty(Object element, String property)
isLabelProperty
in interface IBaseLabelProvider
public void removeListener(ILabelProviderListener listener)
removeListener
in interface IBaseLabelProvider
public void decorate(Object element, IDecoration decoration)
decorate
in interface ILightweightLabelDecorator
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.