public class PrototypeDecorator extends Object implements ILightweightLabelDecorator
ILaunchConfiguration
prototypes.Constructor and Description |
---|
PrototypeDecorator() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ILabelProviderListener listener)
Adds a listener to this label provider.
|
void |
decorate(Object element,
IDecoration decoration)
Calculates decorations based on element.
|
void |
dispose()
Disposes of this label provider.
|
boolean |
isLabelProperty(Object element,
String property)
Returns whether the label would be affected
by a change to the given property of the given element.
|
void |
removeListener(ILabelProviderListener listener)
Removes a listener to this label provider.
|
public void addListener(ILabelProviderListener listener)
IBaseLabelProvider
Label provider listeners are informed about state changes that affect the rendering of the viewer that uses this label provider.
addListener
in interface IBaseLabelProvider
listener
- a label provider listenerpublic void dispose()
IBaseLabelProvider
dispose
in interface IBaseLabelProvider
public boolean isLabelProperty(Object element, String property)
IBaseLabelProvider
isLabelProperty
in interface IBaseLabelProvider
element
- the elementproperty
- the propertytrue
if the label would be affected,
and false
if it would be unaffectedpublic void removeListener(ILabelProviderListener listener)
IBaseLabelProvider
removeListener
in interface IBaseLabelProvider
listener
- a label provider listenerpublic void decorate(Object element, IDecoration decoration)
ILightweightLabelDecorator
decorate
in interface ILightweightLabelDecorator
element
- the element to decoratedecoration
- the decoration to set
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.